Welcome to the most active Linux Forum on the web.
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 06-13-2008, 11:42 AM   #1
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
different colors of files from the terminal

Hi, I did a symbolic link to a file, after that I did a "ls" and several files had different colors, the symbolic link is color dark gray, someones are light green, white and so on, what is the meaning of those colors?

Old 06-13-2008, 12:35 PM   #2
Registered: Feb 2008
Location: Monterrey, MX
Distribution: Slackware since 3.4 and love it!!!
Posts: 162

Rep: Reputation: 31
Those colors are for identify the file type, take a look at the ls man page
As I remember the command ls --color activate this

Last edited by Cuetzpallin; 06-13-2008 at 12:44 PM.
Old 06-13-2008, 12:38 PM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
It is common that the ls command is aliased to "ls --color=auto" or something like that. You can see if this is the case by doing:
alias ls
...which will print out any alias associated with the command "ls". If ls is aliased, check the OPTIONS section of the ls manual page to see what the options do.
Old 06-13-2008, 01:55 PM   #4
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 65
...another way to get color in ls is by LS_COLORS environment variable, just in case you don't have an alias to 'ls --color=whatever'. Check it too.


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 Colors carlosinfl Debian 7 02-22-2008 05:41 AM
Terminal Colors carlosinfl Linux - General 1 02-25-2007 03:59 PM
colors in terminal cad Linux - General 1 01-03-2007 01:27 AM
Terminal Colors carlosinfl Linux - General 2 08-29-2006 03:52 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 04:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 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