LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-13-2008, 10:42 AM   #1
htamayo
Member
 
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?


regards
 
Old 06-13-2008, 11:35 AM   #2
Cuetzpallin
Member
 
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 11:44 AM.
 
Old 06-13-2008, 11:38 AM   #3
matthewg42
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:
Code:
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, 12:55 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
...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.
 
  


Reply


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


All times are GMT -5. The time now is 07:42 AM.

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