Solved

aliases in UNIX

Posted on 1998-12-18
5
215 Views
Last Modified: 2013-12-06
I can I create an alias and be able to use it each time I login?  Now I can create an alias, but when I logout and log back in I have to create it again.
0
Comment
Question by:bgcntry
5 Comments
 
LVL 5

Expert Comment

by:bchew
ID: 2008463
"create" the alias in the .login file in your home directory, then it will create itself each time you log in.
0
 

Expert Comment

by:vanchai
ID: 2008464
write alias in .profile in your home.
0
 
LVL 5

Expert Comment

by:bchew
ID: 2008465
.login, .profile, .cshrc depending on which shell(s) you log in with...
0
 

Expert Comment

by:leandro
ID: 2008466
write alias in general profile. So, all users can to use your alias.
In Solaris, the general profile is /etc/profile.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 20 total points
ID: 2008467
even it's an duplicate question, here are some places to write aliases permanent
(depends on your login shell and/or OS which one will/can be used):

/etc/{bashrc,cshrc,profile,login,tcshrc}
/etc/cshrc.std
/etc/.{cshrc,login,tcshc,login}
/etc/csh.{cshrc,login}
~/.{bashrc,bash_history,cshrc,history,login,profile,tcshrc,zshrc}
(probably some more ;-)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question