LinuxQuestions.org
Review your favorite Linux distribution.
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 11-23-2009, 11:59 AM   #1
erdfields
LQ Newbie
 
Registered: Nov 2009
Location: Kansas City, MO
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Filename abbreviations in printenv LS_COLORS


I'm trying to understand what the colors of the different filenames listed by the ls command mean.

When I

printenv LS_COLORS

I get

rs=0:di=01;34:ln=01;36:hl=44;37i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31;01:su=37 ;41:sg=30;43:ca=30;41:tw=30;42w=34;42:st=37;44:ex=01;32 #plus a whole lot more

I can find documentation on some of the abbreviations such as di is directory and hl is hard link, but I can't find information on all of the abbreviations. Can someone direct me to the complete official explanation of these abbreviations.
 
Old 11-23-2009, 12:11 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Does seem tricky to find a list of those short abbreviations. But, you may find "dircolors" to be informative. Try:

man dircolors

or

dircolors -p

for some place to start. Also, this mailing list thread: http://www.mail-archive.com/bug-core.../msg16736.html might help (or not) but I haven't read the whole thread..

Sasha
 
Old 11-23-2009, 01:42 PM   #3
erdfields
LQ Newbie
 
Registered: Nov 2009
Location: Kansas City, MO
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Need more help with LS_COLORS

Thanks for your help I found some of the abbreviations but now all, still can't find ca, do, hl, ow, rs, st, su sg or tw
 
Old 11-23-2009, 01:46 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
hl is likely hardlink.
su looks like set-UID
sg looks like set-GID
st may be "sticky-bit"
ow looks like "other-writeable"
tw looks like "sticky+other writeable"
do might be "door" (whatever that is?)
ca may be "capability" (whatever that is?)


As to these and the remaining mysteries, you may just have to do much Googling, until someone provides a link to what appears to be a complete list or if you find that list, be sure to post a link for us.

Sasha

Last edited by GrapefruiTgirl; 11-23-2009 at 01:48 PM.
 
  


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
LXer: Speed-Typing in Vim With Maps and Abbreviations LXer Syndicated Linux News 0 06-29-2009 11:12 PM
zsh, dircolors, and LS_COLORS MikeDawg Slackware 1 12-08-2007 05:36 AM
login shell, 'ls', and LS_COLORS soldan Linux - General 5 03-21-2007 07:36 PM
What are all these abbreviations/acronyms anyway? vharishankar General 1 09-18-2004 05:54 AM
Searching on abbreviations and anagrams Bert LQ Suggestions & Feedback 1 09-12-2002 02:17 PM


All times are GMT -5. The time now is 12:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration