Thursday, August 28, 2014

Changing font color in a linux system

In many of the linux ami's the default font color makes it hardly readable, so not sure why the default color set to "34" in the /etc/DIR_COLORS file. In order to change it you can do the following

$sudo vi /etc/DIR_COLORS
...
DIR 01;34       # directory
...

and you change it to cyan and it will improve the readability

...
DIR 01;36       # directory

After making the change, save and source the profile or exit out and re-login again to see the changes.

If you would like to set it to other colors, you may choose from

30=black
31=red
32=green
33=yellow
34=blue
35=magenta
36=cyan
37=white

No comments:

Post a Comment