LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   different colors of files from the terminal (https://www.linuxquestions.org/questions/linux-newbie-8/different-colors-of-files-from-the-terminal-649071/)

htamayo 06-13-2008 10:42 AM

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

Cuetzpallin 06-13-2008 11:35 AM

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 ;)

matthewg42 06-13-2008 11:38 AM

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.

marozsas 06-13-2008 12:55 PM

...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.


All times are GMT -5. The time now is 10:49 PM.