LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search/Browse

 Category Gateway
More Options
Category:

LinuxLinks News
 · Learn to Develop Lua Applications with Free Books
 · Get to Grips with HTML with Free Books
 · Learn all about VimL Programming And Vim with Free Books
 · Become Competent in OCaml Programming with Free Books
 · Learn Scala Programming with Free Books
 · Master Haskell Programming with Free Books
 · TinkerOS Android 13.11.0.4 Released
 · Asus Tinker Board An Inexpensive Home Theatre Solution
 · How to Change your Android Screen Resolution for the Asus Tinker Board
 · Installing Google Play Store on the Asus Tinker Board
(more...)
 

LinuxLinks Login

Login:

Password:



Click here
to start your own
Link collection!


Click to Visit

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