Solved

aliases in UNIX

Posted on 1998-12-18
5
212 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

707 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

15 Experts available now in Live!

Get 1:1 Help Now