Display color of change instruction ls

Source: Internet
Author: User
The display color of the change command ls-Linux general technology-Linux technology and application information. The following is a detailed description. Linux Command ls sets the display color of the directory to Blue by default, which is OK on the CRT screen, but almost invisible on the LCD screen, especially on the laptop. You can change the display color of ls in the following ways:

1. The command dircolors outputs the current preset color attributes, archived to the. dir_colors file in the home directory.

Dircolors-p> ~ /. Dir_colors

2. Edit joe ~ /. Dir_colors, where

DIR 01; 34
Change
DIR 01; 33

After archiving, log on again. The color value 33 represents yellow, so eye-catching!

Attribute values of various colors are described in. dir_colors:
# Attribute codes:
#00 = "none" 01 = "bold" 04 = "underscore" 05 = "blink" 07 = "reverse" 08 = "concealed"
# Text color codes:
#30 = "black" 31 = "red" 32 = "green" 33 = "yellow" 34 = "blue" 35 = "magenta" 36 = "cyan" 37 = "white"
# Background color codes:
#40 = "black" 41 = "red" 42 = "green" 43 = "yellow" 44 = "blue" 45 = "magenta" 46 = "cyan" 47 = "white"

Complete.
Related Article

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.