Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configure shell

Status
Not open for further replies.

minus0

Programmer
Feb 20, 2003
73
0
0
US
hi,

How do i configure the shell in solaris so that i can create short cuts?
for ex if i type $ l then this should work as $ls -l .

thanks for any inputs
 
Hi minus0,
You will need to use the 'alias' command. For ksh, use
$ alias l="ls -l"

Krish
 
If you are running Korn shell, add this to your .profile:

alias l="ls -l"

My Unix in a Nutshell says using alias is available for Korn shell only.
 
Didn't mean to be redundant. We must have hit the send button together.
 
thanks guys - I worked on UNIX like 5 years ago and only when i read your replies i remembered these things can be done by tweaking the .profile thanks once again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top