One thing i like from Linux is it have full customization. You can change your text color on your command line. And especially for “ls” command. ls command is to list information about the files or directory in Linux CLI (Command Line Interface). ls command is one of the most frequent use command in Linux CLI.
The result of the ls command will have text color to make different of files type, directory, symbolic links and etc. And in some Linux distro have different color than others. And sometimes they have same default color for all. So it is hard to find the difference between directories and files.
To change ls command text color you can find it in /etc/DIR_COLORS. You can edit it with vim:
Default colors for Ubuntu or CentOS:
* Executable files: Green
* Normal file : Normal
* Directory: Blue
* Symbolic link : Cyan
* Pipe: Yellow
* Socket: Magenta
* Block device driver: Bold yellow foreground, with black background
* Character device driver: Bold yellow foreground, with black background
* Orphaned syminks : Blinking Bold white with red background
* Missing links ( – and the files they point to) : Blinking Bold white with red background
* Archives or compressed : Red (.tar, .gz, .zip, .rpm)
* Image files : Magenta (.jpg, gif, bmp, png, tif)
The file will store in this following format:
FILE-TYPE Attribute_codes: Text_color_codes:Background_color_codes
FILE-TYPE: file type or directories. sample: jpg (for image file), DIR (for directories)
Will make directories will bold and yellow text.
Customize it until you meed your favorite color. Save it and restart your session. It will change the color.
vaj l0n chym en :))