LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-30-2006, 11:47 PM   #1
EtherGhost
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Rep: Reputation: 0
Question Meaning of text color in the console? (ls output for example)


Greetings, I'm just a newbie, so can someone point me to some doc that describes the meaning of the color of a text in the console? I know that green means executable and red is compressed, but there are quite a few more.

Surprisingly I can't find it through Google.
 
Old 12-30-2006, 11:59 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I am not sure if this is distro specific or not, but on my system, the colors for ls are defined system wide in /etc/DIRCOLORS and can be overridden by a file in the user's directory called .dircolors. (Files and directories starting with a dot are "hidden"; i.e. the ls command won't display them unless you specify -a or -A, you type the full name, or you use tab completion and you've already typed the dot.)

These are configuration files, and as such are a little cryptic. But you can probably figure out what you want from them.
 
Old 12-31-2006, 12:15 AM   #3
EtherGhost
LQ Newbie
 
Registered: Dec 2005
Posts: 20

Original Poster
Rep: Reputation: 0
thanks, I found the file.

By the way, some chars are appended at the end of the filename such as * and @

there is no info about that in the file you mentioned, anyone knows about that?
 
Old 12-31-2006, 12:59 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
With the -F option, ls will append some special characters to the end of certain files, including appending "@" to the end of symbolic links and "*" to the end of executable files. It sounds like the distro you are using has defined an alias for ls. To find out, type:

alias ls

The ls command has a long history and many options. You might want to browse through its info file by typing:

info ls

If you need to find out how to navigate inside the info command, type:

info info

EDIT: Also, LQ has a wiki entry for ls that you might want to take a look at, or even contribute to.

Last edited by blackhole54; 12-31-2006 at 01:43 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
? meaning of /bin/ls: .: Input/output error JesseMor Linux - Newbie 11 10-28-2008 08:27 PM
Console Text Color Change Mercurius Slackware 6 05-16-2006 07:35 AM
bittorrent: meaning of the output of btdownloadheadless --spew bnj Linux - Software 2 03-21-2006 03:06 AM
How to get a color text console? dejavu_01 Debian 1 08-30-2005 11:38 AM
Different color for console error output? ta0kira Linux - Software 0 05-18-2005 07:22 AM


All times are GMT -5. The time now is 11:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration