LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2011, 08:07 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
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
 
Old 01-12-2011, 08:16 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Found something here:
http://www.linuxtopia.org/online_boo..._about_ls.html
 
1 members found this post helpful.
Old 01-12-2011, 08:20 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Here is another one you can look at:

http://www.bigsoft.co.uk/blog/index....ring-ls_colors
 
1 members found this post helpful.
Old 01-12-2011, 08:53 AM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM virtualizaiton results in odd colors, low screen resolution eveningsky339 Linux - Virtualization and Cloud 7 10-25-2010 06:10 PM
Slackware 13: starting KDE apps results in wrong colors ... matze525 Slackware 3 03-15-2010 03:35 PM
[SOLVED] Linux CLI through Putty, do colors signify anything? anon091 Linux - Newbie 9 01-14-2010 12:49 PM
Changing Bash Colors ForumJoiner Linux - Newbie 4 12-01-2006 10:44 AM
Bash colors ryedunn Mandriva 0 12-09-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration