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.
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.
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?
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:
The ls command has a long history and many options. You might want to browse through its info file by typing:
If you need to find out how to navigate inside the info command, type:
EDIT: Also, LQ has a wiki entry for ls that you might want to take a look at, or even contribute to.
|All times are GMT -5. The time now is 04:32 AM.|