Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-04-2003, 06:41 PM
|
#1
|
Member
Registered: Aug 2003
Posts: 31
Rep:
|
very newbie alias question
I created an .alias file, only put one simple line in it:
alias test1 cd $HOME/develop/test1
I got twice of the errors:
> 'test1' not found
> 'cd $HOME/develop/test1' not found
It should be a very simple thing. I typed the this line in a shell, the same error. But if I type 'cd $HOME/develop/test1', it is fine.
What is wrong with my alias?
Thank,
Fang
|
|
|
09-04-2003, 06:45 PM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Put it in the file
.bashrc
|
|
|
09-04-2003, 06:56 PM
|
#3
|
Member
Registered: Aug 2003
Posts: 31
Original Poster
Rep:
|
The same thing.
|
|
|
09-04-2003, 06:59 PM
|
#4
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Sorry, try
alias test1='cd $HOME/develop/test1'
|
|
|
09-04-2003, 07:46 PM
|
#5
|
Member
Registered: Aug 2003
Posts: 31
Original Poster
Rep:
|
Yeeees, it works this time!
I don't understand, alias is very old tool. Seems it changed now.
Thank you so much!
Fang
|
|
|
All times are GMT -5. The time now is 02:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|