Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to change the color of ls command display list file under ubuntu

Shulou Source: shulou.com Published: 2022-06-01 14:31:28 10月02日 Update

This article mainly introduces "how to change the color of ls command display list file under ubuntu", in the daily operation, I believe that many people have doubts about how to change the color of ls command display list file under ubuntu. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "how to change the color of ls command display list file under ubuntu". Next, please follow the editor to study!

Edit / etc/DIR_COLORS file

1. Cd ~

2. Dircolors-p > .dirbread

3. Vi .dircolors

When I find OTHER_WRITABLE, mine is on line 81. You can decide what value to change. It is stated in the document that which value means Shenma. I changed it to 01, 37, and 42, meaning white and bold with green background.

4. Source .bashrc

Complete

At this point, the study on "how to change the color of the ls command display list file under ubuntu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Files commands colors learning meaning more help practical next articles methods is in theory white knowledge articles websites materials follow questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei MariaDB Shulou Tech Info MySQL