Have a look at /etc/DIR_COLORS which defines the colors for files/directories for the 'ls' command:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

Copy /etc/DIR_COLORS to ~/.dir_colors and make the changes you want.  I like to set the underline
for symlinks.  I use a different background color and text color for each of the servers I administer
which helps to keep from issuing a command on the wrong server.  After changing your .dir_colors,
issue:
eval `dircolors -b ~/.dir_colors`
for the changes to take effect (or logout and back in).

The same color codes are used for the command line prompt which is set in ~/.bashrc.  On this server,
I have white text on a black background (search for 'PS1' in man bash for \j \T \u \h definitions):
PS1="\[\e[0;37m\][\[\e[1;4;32m\]\j\[\e[0m\] \T \[\e[1;33m\]\u@\h \W\$(rc=\$?; if [[ \$rc -ne 0 ]]; then echo \" \[\e[31m\]\$rc\[\e[0m\]\"; fi)\[\e[0;37m\]]\[\e[1;33m\]\$\[\e[0m\] "
PS2="\[\e[1;33m\]> \[\e[0m\]"
\[\e[0;37m\] is an escape sequence for white text with no attribute.  This yields a prompt:
[0 06:10:09 root@yoda ~]$ lesss /etc/DIR_COLORS
-bash: lesss: command not found
[0 06:10:15 root@yoda ~ 127]$
Zero is the number of background jobs running. 06:10:15 is the time the prompt was issued.  127 is
the return code from the last command issued.

You can also set the colors for grep in ~/.bashrc.  I haven't experimented with this much:
export GREP_COLORS='ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36'

Bill


On 4/23/2020 2:51 PM, Joe Zeff wrote:
On 04/23/2020 12:37 PM, Tom Horsley wrote:
Apparently you have the same version of dnf I have. I utterly
despise "helpful" colors, especially since all the people who
pick them assume you have a white background in your terminal
Then you can't read them at all with a dark background.

One of the first things I do on any installation is remove the "helpful" alias making color ls the default.  Not because I hate the colors but because none of the documentation tells you which color means what.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org