Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-31-2006, 12:47 AM   #1
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-31-2006, 12:59 AM   #2
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, 01:15 AM   #3
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, 01:59 AM   #4
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 02:43 AM.


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 09:27 PM
Console Text Color Change Mercurius Slackware 6 05-16-2006 08:35 AM
bittorrent: meaning of the output of btdownloadheadless --spew bnj Linux - Software 2 03-21-2006 04:06 AM
How to get a color text console? dejavu_01 Debian 1 08-30-2005 12:38 PM
Different color for console error output? ta0kira Linux - Software 0 05-18-2005 08:22 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 PM.

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