I am not sure if this is even possible I search in google but looks like I am not using the correct search string. How can we change the display color of directory strings, files etc.
Example: when we do ls, command can we change the .bash_profile script to show Directories in Red and Files in yellow? further more can we change file colors based on file type?
Yes you can. Use
to turn on the colors in
lsand something liketo customize the colors per type of file.
Type
for an explanation of how
LSCOLORSwork.