CentOS, Linux change ll command display color

Source: Internet
Author: User

The server uses the CentOS, when manages with the Putty, the directory under the command line is shown in blue, it is difficult to see. You can change it in the following two ways:

method One:
1. Directly modify the. color.rc file under the personal account directory.
Find dir 01;34, modified to Dir 01;37;44, which is a white-white blue bottom, and you can define other colors yourself.

Optional settings:

# 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    


2.reboot restart, or use evaldircolors $HOME/.color.rc (the key in the upper right corner of the keyboard esc), done.

Method Two:
1.cp/etc/dir_colors $HOME/.dir_colors

2. Vim $HOME/.dir_colors

3. Locate dir 01;34, modify it to Dir 01;37;44, that is, white-lettering blue bottom, save exit

4. Reboot restart, or use evaldircolors $HOME/.dir_colors (the key in the upper-right corner of the keyboard ESC), re-download

Into the settings, you can see the LS look at the effect

For details on/etc/dir_colors configuration, you can check here

Http://linux.chinaunix.net/techdoc/system/2008/12/29/1055585.shtml

CentOS, Linux change ll command display color

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.