Linux system changes the LS file and folder color method

Source: Internet
Author: User

I have previously targeted the Blue folder color I modified: cp/etc/dir_colors ~/.dir_colors

Vim ~/.dir_colors, change dir 01;33 to dir 01;36 effect is OK;

But recently browsing the Web page, someone changed the folder color to white, and then added a background color blue,, the effect is more gorgeous,,, is not known for a long time,,,

Paste the original text below:

--------------------------------------------------------------------------------------------------------------- ------------------

Ways to change the LS directory and file color:

First of all:
Vi/etc/dir_colors

Or

Cp/etc/dir_colors ~/.dir_colors
VI ~/.dir_colors

The DIR 01 is set in the file.;"ForlsThe color settings of the command's directory, onrepresents bold, therepresents the font blue.
Change into"DIR 01;Panax Notoginseng; -”,Panax Notoginsengis the font white, -is the word background blue.

Note: The number represents the color, which will be shown below
You can find two lines of comments for the file:

# Text Color Codes:

# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white

+ = Red
= Green
= Orange
* = Blue
* = Purple
Cyan =
Panax Notoginseng = Grey
max = black background
Background = Red
* = Green background
= Orange background
Background = Blue
Background = Purple
Background = Cyan
Background = Grey
* = Dark Grey
= Light Red
= Light Green
Yellow =
94 = light Blue
Purple = Light
= Turquoise
+ = dark grey background
101 = Light Red background
102 = Light green background
103 = Yellow Background
104 = light blue background
Background = Light Purple
106 = Turquoise Background



After execution:

# eval ' dircolors/etc/dir_colors ' times, I'm modifying the current user's color, so the command is: eval ' dircolors ~/.dir_colors '
Note that the ' symbol ' in the command is the one below the keyboard ~ symbol, and then the LS command is effective.

If you are not accustomed to it, it is recommended to change to DIR 01;36

  

Linux system changes the LS file and folder color method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.