LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-04-2003, 07:41 PM   #1
ffang
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 15
Angry 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
 
Old 09-04-2003, 07:45 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Put it in the file
.bashrc
 
Old 09-04-2003, 07:56 PM   #3
ffang
Member
 
Registered: Aug 2003
Posts: 31

Original Poster
Rep: Reputation: 15
The same thing.
 
Old 09-04-2003, 07:59 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Sorry, try
alias test1='cd $HOME/develop/test1'
 
Old 09-04-2003, 08:46 PM   #5
ffang
Member
 
Registered: Aug 2003
Posts: 31

Original Poster
Rep: Reputation: 15
Yeeees, it works this time!
I don't understand, alias is very old tool. Seems it changed now.

Thank you so much!

Fang
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
Another Newbie question....Alias tetpt Linux - Newbie 5 03-04-2005 11:58 AM
Newbie Help : can i setup IP Masquerading with a device alias ? venicivivedi Linux - Networking 2 05-03-2004 01:37 AM
alias newbie french_frogger Linux - Newbie 2 03-17-2004 08:07 PM
alias question tied2 Linux - General 4 08-23-2002 11:50 PM


All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration