LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09:07 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,637

Rep: Reputation: 112Reputation: 112
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, 09:16 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,550
Blog Entries: 56

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, 09:20 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
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, 09:53 AM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,637

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:10 PM
Slackware 13: starting KDE apps results in wrong colors ... matze525 Slackware 3 03-15-2010 04:35 PM
[SOLVED] Linux CLI through Putty, do colors signify anything? rjo98 Linux - Newbie 9 01-14-2010 01:49 PM
Changing Bash Colors ForumJoiner Linux - Newbie 4 12-01-2006 11:44 AM
Bash colors ryedunn Mandriva 0 12-09-2004 09:50 AM

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

All times are GMT -5. The time now is 02:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration