Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-13-2013, 06:48 PM   #1
LQ Newbie
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
What do the colours in Linux terminal represent?

What do the colours in Linux terminal represent?

Last edited by Tinkster; 02-13-2013 at 07:42 PM. Reason: please use English, this forum doesn't allow other languages.
Old 02-13-2013, 07:59 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289

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
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
eval `dircolors --bourne-shell ~/.dircolors`
in their ~/.bashrc (this example is for bash users).




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
Terminal colours and locale mlpa Slackware 5 09-10-2010 09:40 AM
What terminal or shell colours do you use? jayeola Linux - General 2 08-24-2010 08:16 AM
What do the colours mean in the terminal? alaskazimm Mandriva 2 07-04-2004 08:34 AM
No .bashrc, I need colours in the terminal!! akudewan Slackware 9 06-07-2004 05:16 PM
How do I get colours in terminal (aterm)? mr-tiddles Linux - General 5 10-23-2003 11:23 AM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration