-   Linux - Newbie (
-   -   how to get colors in terminal window? (

emanresu 11-15-2005 12:18 AM

how to get colors in terminal window?
How can I get different colors for files and directories in the terminal window? Right now, everything is just black regardless whether it is a file or a directory. How do I configure it so that directories will show up blue, executables are green and so forth? Thanks!

-- Eman

jrdioko 11-15-2005 12:33 AM

Take a look at dircolors (man dircolors). That needs to be run in your shell startup script, and individual colors can be changed in /etc/DIR_COLORS.

prabuayyappan 11-15-2005 08:16 AM

add alias as
alias ls ='ls --color=tty'


dracolich 11-15-2005 02:55 PM

You're using a terminal window and want it to look like it does if you were at the commandline? I don't know about eterm, but xterm, aterm and I think rxvt all have the -ls option to start with the login shell. This means it will use your current login state as it was before X started. If you had the command prompt set as the color red, it'll be red in your terminal window. I also like to use -bg black and -fg white since black text on white background makes my eyes tired.

All times are GMT -5. The time now is 01:19 PM.