Using the dircolors command in your ~/.bashrc. The dircolors command as used in your ~/.bashrc will set the colours of the various files and directories that are shown with the ls(1) command. Use the command dircolors –print-database to display a list of the filetypes and what colour codes will be used for each one. [ …