Linux command LS basically use the file /etc/dir_colors or /etc/dir_colors.xterm to define the col ORS used, in terms of different types of terminal of Windows.
You can change the definitions directly in these files to alter the colors to meet your. However sometimes you don't have the write access to/etc/ thus can set an environment variable named ls_colors to achieve this goal. A tool named dircolors/etc/dir_colorsls_colors environment variable. Use dircolors--help
For example, I am using the csh, thus I would use:
Dircolors-c/etc/dir_colors
Then the command gives:
Setenv ls_colors ' no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;0 5;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01; 31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*. Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01 ; 35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35: '
Modify this value and the write it to . CSHRC to take effect after next sourcing of . CSHRC.
Read /etc/dir_colors for the definitions of each value.
Changing the Color of Linux ls Command