linux 命令行颜色设置

来源:互联网 发布:php授权验证系统源码 编辑:程序博客网 时间:2024/06/07 05:22

centos中在/etc/DIR_COLORS文件里设置
DIR 01:34 是默认的,蓝色的目录看不清,所以改成DIR 01:36

# Below are the color init strings for the basic file types. A color init# string consists of one or more of the following numeric codes:# 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 # are the color init strings for the basic file types. A color init# string consists of one or more of the following numeric codes:# 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=whiteNORMAL 00       # global default, although everything should be something.FILE 00         # normal fileDIR 01;36       # directory LINK 01;36      # symbolic linkFIFO 40;33      # pipeSOCK 01;35      # socketBLK 40;33;01    # block device driverCHR 40;33;01    # character device driverORPHAN 01;05;37;41 # orphaned syminksMISSING 01;05;37;41 # ... and the files they point to