Changing the Directory Color in the Bash Shell
While running Linux distribution, I often found it that I could hardly see directory names due to dark color (well, it is dark blue in black background, which is hard to believe why this combination is chosen)
Thanks to this posting, I could change the color. Here’s a simple way.
- Open .bashrc in your home directory.
-
Create the following entry. Check out the [value] below. The first number is the degree of darkness, followed by a semicolon, and then the actual number of the color.
LS_COLORS=’di=[value]’ ; export LS_COLORS
[value] Blue = 34 Green = 32 Light Green = 1;32 Cyan = 36 Red = 31 Purple = 35 Brown = 33 Yellow = 1;33 white = 1;37 Light Grey = 0;37 Black = 30 Dark Grey= 1;30
- Restart bash shell.
Enjoy Reading This Article?
Here are some more articles you might like to read next: