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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change default ls command

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
is there a way to make the ls command default with the -a and -l switches without typing them every time (the less typing, the better)

Thanks

B
 
You could move ls out of your path, make a script which applies the appropriate switches, and then save the script in your path.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Thanks sleipnir214, that worked great (tanderso, good idea though)
 
btaber,

If you are running bash, you can put the alias command in your .bashrc and they will be available in every shell automatically.
pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top