Nguyễn Tâm Hảo
New member
How do you make a file green in Linux?
Answer
So you do
chmod -R a+rx top_directory
. This works, but as a side effect you have also set the executable flag for all the normal files in all those directories too. This will make ls print them in green if colors are enabled, and it has happened to me several times.
Answer
So you do
chmod -R a+rx top_directory
. This works, but as a side effect you have also set the executable flag for all the normal files in all those directories too. This will make ls print them in green if colors are enabled, and it has happened to me several times.