LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search/Browse

 Category Gateway
More Options
Category:

LinuxLinks News
 · 8 Insanely Addictive Multi-Platform Open Source Simulation Games
 · 5 Best Open Source Multi-Platform Data Science Notebook Software
 · Learn Logo Programming with No Charge Books
 · Learn TeX Programming with Free Books
 · Grasp LaTeX Programming with Free Books
 · Master Awk Programming with Free Books
 · Become Proficient in Fortran with Free Books
 · Learn Scheme Programming with No Charge Books
 · Master Rust Programming with Free Books
 · Master Ada Programming with Free Books
(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