Ubuntu Modified LS Display color

Source: Internet
Author: User

The pain of the LS folder in Linux system I will not say, in order not to hurt the eyes, the general SSH terminal background is used in black, folder is your mother's dark blue, every time you look at the folder to see the probe carefully. This is a complete solution to the problem.

 because there is no dir_colors in the/etc/directory under Ubuntu, it took a bit of effort. 1. Using the dircolors command, view our system's current file name display color values, and then use the pipeline to redirect to any file under the user directory (here we have created a. dircolors file)Command 1:CD ~command 2:dircolors-p >. dircolors 2. Open the. dircolors file with Vim, then locate "dir 01;34" and modify it to "dir 01;35" to save the exit. (Here 01 indicates high brightness display, 34 for blue, 35 for magenta)  3. In order for the changes to take effect, exit and re-enter the systemcommand: Exit  Style:00-normal (no color, no bold)01-bold//Boldtext color30-black//Black31-red//Red32-green//Green33-yellow//Yellow34-blue//Blue35-magenta//Magenta36-cyan//blue-Green37-white//WhiteBackground Color40-black41-red42-green43-yellow44-blue45-magenta46-cyan47–white White: Indicates normal file blue: Indicates directory green: Indicates executable file red: Indicates compressed file cyan: Link file flashing red: There is a problem with the linked file yellow: Indicates that the device file is gray: indicates a different file

Ubuntu Modified LS Display color

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.