How to remove dir background in `ls -color` output
问题 I use default Linux Mint .bashrc, here is full bashrc, the output is like: some dir has green background, How to remove it? 回答1: To remove all background colors, stick the following into your ~/.bashrc : eval "$(dircolors -p | \ sed 's/ 4[0-9];/ 01;/; s/;4[0-9];/;01;/g; s/;4[0-9] /;01 /' | \ dircolors /dev/stdin)" 回答2: The explanation is given in the output of dircolors -p , e.g., Of course dircolors doesn't color its output. I used this script: #!/usr/bin/perl -w use strict; our $comment = "