LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search/Browse

 Category Gateway
More Options
Category:

LinuxLinks News
 · Running Kodi on the Asus Tinker Board
 · Assimilate Go Programming with Open Source Books
 · TinkerOS_Debian V1.8 (Beta version) Released
 · Will Razer Ever Wake Up and Smell the Roses?
 · Learn Swift Programming with No-Charge Books
 · 11 Recommended Open Source Multi-Platform Astronomy Software
 · Teach Scratch Programming with Open Source Books
 · Open Source Books
 · Study Ruby Programming with Open-Source Books
 · Grasp R Programming with Open-Source 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