Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to modify the display color of the folder directory created by the centos system

Shulou Source: shulou.com Published: 2022-05-31 11:38:58 09月23日 Update

This article mainly explains the "centos system how to modify the folder directory to create the display color", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "centos system how to modify the folder directory display color" it!

Preface

The default directory color of the linux system is blue and cannot be seen clearly under a black background. You can modify the color viewed by ls in the following two ways.

Methods:

1. Copy / etc/dir_colors file to the .dir _ colors of the current home directory

Cp / etc/dir_colors ~ / .dir_colors

2. Modify the color corresponding to dir in ~ / .dir_colors

Vim / .dir_colors

Find the following line:

Dir 01: 34 (01: bold, 34: blue)

Change to:

Dir 01: 33 (01: bold, 33: yellow)

Explanation:

The specific code of the effect is as follows

1) list of effects:

00 default

01 bold

04 underline

05 flicker

07 reverse display

08 Hidden

2) Color list

31-37 indicates that the foreground colors are red, green, orange, blue, purple, cyan and gray respectively.

90-97 indicates that the foreground colors are dark gray, light red, light green, yellow, light blue, lavender, cyan and white, respectively.

40-47 indicates that the background colors are black, red, green, orange, blue, purple, cyan and gray respectively.

100-106 indicates that the background colors are dark gray, light red, light green, yellow, light blue, lavender and turquoise respectively.

Thank you for your reading, the above is the "centos system how to modify the creation of folder directory display color" content, after the study of this article, I believe you on the centos system how to modify the creation of folder directory display color of this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Colors directories files systems folders background yellow learning content effects methods colors lavender light blue dark gray blue turquoise clear one line underline Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno Redmi Shulou Technology MySQL