• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

aliases in UNIX

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
bgcntry
Asked:
bgcntry
1 Solution
 
bchewCommented:
"create" the alias in the .login file in your home directory, then it will create itself each time you log in.
0
 
vanchaiCommented:
write alias in .profile in your home.
0
 
bchewCommented:
.login, .profile, .cshrc depending on which shell(s) you log in with...
0
 
leandroCommented:
write alias in general profile. So, all users can to use your alias.
In Solaris, the general profile is /etc/profile.
0
 
ahoffmannCommented:
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

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now