When I execute command


it displays files and folders. folders are typed in light blue. I would like to have xml files types in pink color.

How to do it?


You can edit ~/.dircolors, if it doesn't exist you can create it with:

dircolors -p > ~/.dir_colors

As the example here shows, you can have this in your .bashrc:

eval `dircolors ~/.dir_colors`
alias ls="ls --color=auto"
| improve this answer | |

one doesn't need to add anything to the /home/yourusername/.bashrc file since it already contains the nessecary entries

just search for --color and uncomment them so they are active!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.