Avatar of jskfan
jskfan
Flag 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

a
Linux

Avatar of undefined
Last Comment
jskfan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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).

Folder/
Symbolic-link@
etc.

You can find more in:  man ls
jskfan

ASKER
Thank you Guys!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck