Changing colors of ls
I have been quite a long time living with files with 777 permission being displayed in blue over green background whenever I do ls, which makes text quite illegible. Sometimes you don’t see a problem even when it is in front of you. Well, I took the time to fix it today. Here is the solution:
It will create a .dircolors file with the color specification vim .dircolors. Now we edit this file and change this line:
for this one:
That will tell ls to display these files with white bold letters over green background, mucho more legible.
In case you prefer different colors, here is what these codes mean:
Last step is to edit ~/.bashrc to make dircolors load these colors each time a new term is opened. Open .bashrc and add these lines:
Open a new terminal to see the changes o just run
If you want to see the changes applied in the current terminal.