Computing.Net > Forums > Solaris > problems with alias

problems with alias

Reply to Message Icon

Original Message
Name: Jonathanb
Date: December 2, 2004 at 03:52:38 Pacific
Subject: problems with alias
OS: Solaris 8
CPU/Ram: sunblade 1024mb
Comment:

hi, i have been trying to set up quick commands usnig alias. I have tried using the C shell commands eg;
alias home "cd /home/blah"
and i have also tried adding commands to the .aliases file in my home directory but the alias command doesnt seem to pick them up
any ideas why this might be happening?


Report Offensive Message For Removal


Response Number 1
Name: cbailey33
Date: December 2, 2004 at 21:11:12 Pacific
Reply: (edit)

For aliases you use often, you need to put your aliases in your /home/blah/.cshrc file.

For adding them on the fly, you were doing this correctly:
alias home "cd /home/blah"

Make certain you are in a C-Shell:
echo $SHELL or just type csh.

To enter commands in your .cshrc file:
--------
vi ~/.cshrc
alias home 'cd /home/blah'
:wq!

source ~/.cshrc
home
pwd
/home/blah
---------


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: problems with alias

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge