LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change shell to have nice colors and look cool? Penguin likes cool colors! (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-shell-to-have-nice-colors-and-look-cool-penguin-likes-cool-colors-686586/)

newtovanilla 11-27-2008 05:17 AM

How to change shell to have nice colors and look cool? Penguin likes cool colors!
 
My shell has different colors when I use the "ls" command for different files and directories. Sometimes the name is highlighted, and I can not read it. Penguin squaks when can't read it! How can I change the colors for the shell, and change the colors that the files show up in with the ls command? How can I change the shell background color and text color? What colors will look cool and be easy to read, and make the Penguin happy?

sycamorex 11-27-2008 05:50 AM

I am at work now so I won't tell you exactly, but I believe in the EDIT menu of konsole/terminal there is a profile option. You can create a new profile (customize your colours, transparency, etc.)

pablob 11-28-2008 09:22 AM

"dircolors" takes care of that. You can read the documentation for it:

man dircolors


It's a bit different for each distro. I.e, RHAT & Fedora use a file /etc/DIR_COLORS like this:


# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link
FIFO 40;33 # pipe
SOCK 01;35 # socket
......
......
......

newtovanilla 11-28-2008 01:55 PM

Thanks, I want to see if that will help as soon as I can figure out how to boot Linux again so that I can try it..


All times are GMT -5. The time now is 05:19 AM.