LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ls in color (https://www.linuxquestions.org/questions/linux-general-1/ls-in-color-333126/)

orange400 06-13-2005 12:17 PM

ls in color
 
I'm using the sarge version of Debian and would like to see all of the ls output in color by default. How would I set this up?

marghorp 06-13-2005 12:19 PM

create an alias in your .bashrc file in your home directory like this:

alias ls='ls --color'

This way when you call the command ls actually the command ls --color is called.

I'm not sure of the switch, it might be --colors :P I am writing this off the top of my head, so please check :)

orange400 06-13-2005 12:29 PM

Thanks! I'm gonna do that. And it's "color" ;)

orange400 06-13-2005 12:52 PM

Worked like a charm! Thanks!


All times are GMT -5. The time now is 12:40 PM.