tldr; How to just fix it?
To quickly fix the problem:
$ LS_COLORS+=':ow=01;33' - Makes other-writable files show up as yellow on nobg
- Edit your shell profile (e.g.
~/.bashrc,~/.profile, etc) to make this permanent.
More details:
Replace 33 by 34 for blue on nobg. Even simpler, to make it nofg on nobg:
LS_COLORS+=:ow= To make your change permanent, append it to your .profile:
echo "export LS_COLORS+=':ow=01;33'" >> ~/.profile To view the non-extension related rules of LS_COLORS:
echo "$LS_COLORS" | sed 's/:/\n/g' | grep -v '\*.' sed puts each rule on one line and grep removes the rules beginning by *.'.
To explore the ls colors on your terminal, consider using
C="$LS_COLORS" function sc () { echo "$LS_COLORS" | sed 's/:/\n/g' | grep -v '\*.' } function t () { ls /mnt # Or the path to your example directory. } Then
LS_COLORS="$C:ow=38;5;250;48;5;025";t As stated in another answer (that of Thomas Nyman), 38;5; is the prefix for foreground x-term 256-colors, and 48;5; for background x-term 256-colors. 256-colors isn't supported by all terminals though.
Also see -What do the different colors mean in ls?- on AskUbuntu.