LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What do the colours in Linux terminal represent? (https://www.linuxquestions.org/questions/linux-newbie-8/what-do-the-colours-in-linux-terminal-represent-4175450057/)

cassinga 02-13-2013 05:48 PM

What do the colours in Linux terminal represent?
 
What do the colours in Linux terminal represent?

evo2 02-13-2013 06:59 PM

Hi,

the meaning of the colour of output on the linux console depends on what is outputting it. One of the most common coloured outputs is from the program "ls". These colours are defined by the LS_COLORS environment variable which is usually set using the dircolors command. You can see a description of the default colours for ls on your system with the following command
Code:

dircolors -p
The different colours are used to indicate different file types (often just indicated by their extension) or perhaps their permissions (is the file executable?) or other more subtle characteristics.

Note that users can use different colour schemes with dircolors, typically by making a ~/.dircolors file and invoking dircolors as
Code:

eval `dircolors --bourne-shell ~/.dircolors`
in their ~/.bashrc (this example is for bash users).

HTH,

Evo2


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