Jan 3, 2003 #1 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
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
Jan 3, 2003 #2 tanderso IS-IT--Management Aug 9, 2000 981 US 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. http://www.oac-design.com Upvote 0 Downvote
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. http://www.oac-design.com
Jan 3, 2003 #3 sleipnir214 Programmer May 6, 2002 15,350 US Bash, for one, supports command aliasing. In your .bashrc, add: alias ls='ls -al' Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
Bash, for one, supports command aliasing. In your .bashrc, add: alias ls='ls -al' Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL!
Jan 3, 2003 Thread starter #4 btaber Programmer May 26, 2002 307 US Thanks sleipnir214, that worked great (tanderso, good idea though) Upvote 0 Downvote
Jan 6, 2003 #5 pansophic MIS Sep 24, 2001 1,347 US 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 Upvote 0 Downvote
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