The files are those for general consumption for the most part, pictures, documents, pdfs, etc/
Asked
Active
Viewed 649 times
2 Answers
2
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.

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

Trinadh venna
- 158
- 1
- 1
- 6
mount
for the relevant drive istype vfat (rw,noexec,nodev,uid=1000,gid=1000,umask=000)
– cfye14 Jun 29 '15 at 05:50head -c 1M > tfile
thenlosetup
&mkfs.vfat
&mount
) and using no mount options & remounting with your options, all files display as green with the executable bit set,ls -l
shows-rwxr-xr-x
. Adding theshowexec
option withmount -o remount,showexec
didn't change it, but umount-ing and then mounting withshowexec
DID work, and plain text files were NOT green/executable.mv
'ing a 5 byte text file to a name ending in.exe
did not immediately change it to green, but umount & then mounting again DID show only the .exe green – Xen2050 Jul 01 '15 at 10:39