I'm using CentOS 6.5 and Putty.My problem is that directory file names are shown in dark blue color which is hard to read. I google searched and found this link; basically it's copying the DIR_COLORS file from /etc to the home directory so changes will only affect the user instead of everyone. The real problem is that whenever I run this command cp /etc/DIR_COLORS ~/.dir_colors, no .dir_colors file is created. And there is no error message too. I ran it using sudo too but also no file is created. When I named the file dir_colors(without the dot) then the file will be created, but when I changed the color from 1;34 to 1;33 in DIR # directory, the dark blue color doesn't change to the new color. I'm guessing it is because the dot is missing before the file name. Any ideas why no file is created when I used .dir_colors?
cp /etc/DIR_COLORS ~/.dir_colors not responding
centos;directory;filenames;colors;file copy
Once the file is copied as per the instructions, just do cd to make sure you're in your home directory, then name_of_your_text_editor .dir_colors and edit the file all you want, and save it. Restart your terminal to see the results.If for some reason you can't find the .dir_colors file, you could always use whatever file you want that contains the color definition you want like so:eval `dircolors yourcolorfile`Effect is immediate on your next ls. This won't persist across sessions so you could add that line to your .bashrc file and achieve the same result as having the .dir_colors file in your home directory. Usage is not limited to CentOS