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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ftpcommand 2 74
need to remove or skip  grub protection password in ubuntu on boot time 2 83
Shell Script on AIX 7 144
Adding a continue option in a script 9 65
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

763 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