Ubuntu: When I run ls on my usb drive, every file is in the green text of executable files. Why is this?



Question:

The files are those for general consumption for the most part, pictures, documents, pdfs, etc/


Solution:1

I think it's because your USB drive has a file system that does not store executable bit permissions, and is being mounted so that all files show up as executable.

A mount option like showexec for fat filesystems is supposed to do this: If set, the execute permission bits of the file will be allowed only if the extension part of the name is .EXE, .COM, or .BAT. Not set by default.

You can check how your drive is mounted with the mount command, and man mount has lots of info on the different options.


Solution:2

There is a color scheme in terminal, you might find the below link useful to understand the meaning of those colors

Terminal color schemes


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »