aliases in UNIX

Posted on 1998-12-18
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.
Question by:bgcntry

Expert Comment

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

Expert Comment

ID: 2008464
write alias in .profile in your home.

Expert Comment

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

Expert Comment

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

Accepted Solution

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):

(probably some more ;-)

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now