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!

Setting command line aliases.

Status
Not open for further replies.

jxfish2

Technical User
Jan 24, 2002
183
0
0
US
I can set each of the following aliases under HP-UX and Linux, but am having trouble setting them in Solaris, under root's CSH:

alias ll='ls -l'
alias bdf='df -k'

What is the correct syntax for setting aliases on Solaris?

Under CSH:

Under SH:

Under KSH:

TIA

Joe
 
Since nobody responded to this, I simply changed my PATH statement, and created my own executables, that pointed to the real binaries, with the options I wanted...

i.e.

New file: /usr/bin/ll

Contains: /usr/bin/ls -al

New file: /usr/sbin/bdf

Contains: /usr/sbin/df -k

Joe
 
The alias command is built into ksh... but there is an alias command in /usr/bin that looks like it works with csh. The format you have above is ksh - for csh, try:

alias ll ls -l
alias bdf df -k

Looks like it's not available in bourne shell.
BTW - This is all in the man page ;-)
 
Use single quotes or double quotes but not back quotes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top