With the help of dircolors
, I changed ls
colors. My .dircolors
file is
FILE 00;97
DIR 00;96
LINK 00;95
MULTIHARDLINK 00;34
ORPHAN 91;01 # symlink to nonexistent file
MISSING 00;00
EXEC 91;00 # this is for files with execute permission
After dircolors .dircolors >> .bashrc
, ls
correctly colors its output
according to the definitions set, except for the executable files.
These are colored with the default terminal foreground color instead of red
(91;00). For example,
xterm -fg yellow # Executables become yellow on ls
xterm -fg green # Executables become green on ls
and that is irrespective of the terminal (Xterm, Terminator, virtual console...).
I have also tried the dircolors file with only the EXEC
line, producing the line
export LS_COLORS='ex=91;00:'
in my .bashrc
, but still no color on executables.
What am I doing wrong in coloring the executable files?