I have selected white-on-black color scheme for Gnome-Terminal. But it keeps using green to display executable files and uses different colored background to display some directories. How can I enforce strict “white-on-black” for all items on the screen?
Answer
To temporary disable colors for ls
use
\ls
or use
dir
For a permanent change you have to delete the alias for ls
. In my case the alias is defined as
% alias ls
ls='ls --color=tty'
Therefore overwrite the alias in e.g. your .bashrc
alias ls='ls --color=never'
The “sneaky way is 😉
Attribution
Source : Link , Question Author : Etienne Kahn , Answer Author : A.B.