用户工具

站点工具


程序应用:bash:ls颜色

调整 ls --color 颜色 ( dircolors )

dircolors –print-database 会输出一段模板 有颜色数字表示的介绍和 文件类型的默认颜色

# 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
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

然后自行修改 LS_COLORS 变量

例:LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=31;01;05:su=37;41:'

export LS_COLORS

程序应用/bash/ls颜色.txt · 最后更改: 2023/06/13 05:25 由 127.0.0.1