Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Linux Files and Folders distinction

Linux Files and Folders distinction

on the screenshot below, I noticed Folders have different colors, I am not sure what 's the reason:
The blue and light blue are folders.
the ones with .extension are files, they are either green or just plain white on black

I was just wondering if there is any Rules about  that .

Thank you

User generated image
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of noci

The colors are selectables and are stored in the environment variable: LS_COLORS,  colors can be disabled   --colors=never or --colors=always default is --colors=auto meaning if stdout is a tty  coloring will be done and through pipelines it isnt.    ls | cat    will remove colors.
Besides coloring ls can also add suffixes to filenames..  (ls -F   or classify files).


You can find more in:  man ls
Avatar of jskfan


Thank you Guys!