Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the dircolors command of linux to set the color used by the ls instruction when displaying directories or files

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the use of linux's dircolors command to set up the colors used by the ls command to display directories or files, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.

Dircolors can set the LS_COLORS environment variable or display the shell instruction to set the LS_COLORS environment variable according to the color profile.

Syntax format: dircolors [parameters]

Common parameters:

-- help online help-- vesion display version information-b is displayed in Boume shell, LS_COLORS is set to the current preset shell instruction-c is displayed in C shell, LS_COLORS is set to the current preset shell instruction-p display preset

Reference example

Show default values:

[root@linuxcool ~] # dircolors-p about using linux's dircolors command to set up ls instructions to display directories or files, this is the color shared here. I hope the above content can be of some help to everyone and can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report