LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search/Browse

 Category Gateway
More Options
Category:

LinuxLinks News
 · Simon Tatham’s Portable Puzzle Collection – Games for the Brain
 · Captain Holetooth – Explorative 2D Platform Game for Kids
 · Taisei – A Classy, Frenetic Shoot’em Up Game in the Style of The Touhou Project
 · YouTube Channel
 · Minilens – Fun Open Source Puzzle Platform Game
 · Wizznic! – Highly Addictive Open Source Puzzle Game
 · Success! Beelink S1 Running Linux – Courtesy of the Open Source Community
 · Beelink S1 Mini PC and Linux – Comedy Gold
 · Fun Packed Open Source Action Games
 · Improve Your Mental Mettle with These Open Source Puzzle Games
(more...)
 

LinuxLinks Login

Login:

Password:



Click here
to start your own
Link collection!



My LinuxLinks
 My LinuxLinksMyLinks  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

where are alias created

 
Post new topic   Reply to topic    LinuxLinks.com Forum Index -> Beginners
View previous topic :: View next topic  
Author Message
bigD
Registered


Joined: 10 Aug 2012
Posts: 1

PostPosted: Fri Aug 10, 2012 5:13 pm    Post subject: where are alias created Reply with quote

I created an alias as follows:
alias foo='cd /users; ls; cd -'.
when I tried to use it, got command not found. I searched under my home directory and sub-directories and could not find foo.
Back to top
View user's profile Send private message

duncangareth
Registered


Joined: 12 Nov 2012
Posts: 3

PostPosted: Mon Nov 12, 2012 11:55 am    Post subject: Aliases Reply with quote

You need to embed your alias definition in a startup script such as .bashrc or .bash_profile.
When you log in, the alias will be stored in the login shell environment and will be accessible from any shell scripts with that login shell as a parent, as well as from the command line.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    LinuxLinks.com Forum Index -> Beginners All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2002 phpBB Group
Built with GeekLog and phpBB
Comments to the webmaster are welcome
Copyright 2009 LinuxLinks.com - All rights reserved