LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What do the various colors in the results of a bash ls signify? (https://www.linuxquestions.org/questions/linux-newbie-8/what-do-the-various-colors-in-the-results-of-a-bash-ls-signify-855814/)

taylorkh 01-12-2011 08:07 AM

What do the various colors in the results of a bash ls signify?
 
I am at the moment using Ubuntu 10.10 with the default color scheme. If I open a bash terminal and type ls -l / I get the results with most information in white on the standard purple background, most directory names in blue on the normal background, tmp in blue on a green background, a file name in white on the normal background and links in teal on the normal background.

So in this situation I am wanting to figure out what the green background behind tmp signifies. I have searched for information about bash color codes and I find hundreds of links regarding how the CHANGE the colors. I have yet to find one which explains what the colors mean.

Can anyone help?

TIA,

Ken

brianL 01-12-2011 08:16 AM

Found something here:
http://www.linuxtopia.org/online_boo..._about_ls.html

grail 01-12-2011 08:20 AM

Here is another one you can look at:

http://www.bigsoft.co.uk/blog/index....ring-ls_colors

taylorkh 01-12-2011 08:53 AM

Thanks folks for the prompt replies.
Quote:

dircolors --print-database
is what I needed. I had read several articles on changing the colors and could not find .dircolors in my home directory (as I had not done any customizing). It seems that the green background on the directories in question signified OTHER_WRITABLE. I suspected that based on empirical evidence. I have printed out the results of the dircolors command and with the aid of some different color highlighters, a pen and some circles and arrows I can always translate my ls colors.

THANKS AGAIN!

Ken


All times are GMT -5. The time now is 07:28 AM.