Issue
I used this command on my folder in unix:
chmod -R go-rwx *
in order to change permissions for group and others. Doing this, many files turned green coloured, even simple data files. Why did this happened?What does it mean? Is it going to affect my files in a bad way? They seem to work right now, but I'm concerned about their general functionality. Thanks!
Solution
That is an ls
functionality:
--color[=WHEN]
colorize the output. WHEN defaults to 'always' or can be 'never' or 'auto'. More info belowUsing color to distinguish file types is disabled both by default and with --color=never. With --color=auto, ls emits color codes only when standard output is connected to a terminal. The LS_COLORS environment variable can change the settings. Use the dircolors command to set it.
You can try with ls --color=never
and you won't see the colors anymore.
You can see your color configuration with dircolors -p
.
This is the line where the executables files configuration resides:
# This is for files with execute permission:
EXEC 01;32
That's just to help you identify file types, so it's not affecting your files in any bad way.
Answered By - whoan Answer Checked By - Katrina (WPSolving Volunteer)