0

enter image description here

I'm working in an Ubuntu 16.04 (Xenial Xerus) VPS. I can barely read the dark blue print in Bash in the screenshot. How can I modify the colours in Bash?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
user1592380
  • 34,265
  • 92
  • 284
  • 515
  • color options should be configurable in your terminal settings – ccarton May 06 '17 at 14:43
  • 1
    Check this out, might help: https://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console/466203#466203 – hmedia1 May 06 '17 at 14:51
  • This is not a `bash` issue; it's a combination of what color codes the `ls` program can output and how your particular terminal interprets them. – chepner May 06 '17 at 15:05
  • Possible duplicate: *[How do I output coloured text to a Linux terminal?](https://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal)* – Peter Mortensen Jun 11 '21 at 23:02

1 Answers1

3

To change colors in terminal settings, use menu TerminalPreferencesProfilesEdit → tab Colors

Command line:

nano ~/.bashrc
# Insert at the end. This will make your directory's red
LS_COLORS=$LS_COLORS:'di=0;31:' ; export LS_COLORS
# Save file
# Restart terminal
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131