首页
首页 » 系统设置 » dircolors

dircolors

dircolors
功能说明:设置 ls 指令在显示目录或文件时所用的色彩。
语  法:dircolors [色彩配置文件] 或 dircolors [-bcp][--help][--version]
补充说明:dircolors可根据[色彩配置文件]来设置LS_COLORS环境变量或是显示设置LS_COLORS环境变量的shell指令。
参  数:
 -b或--sh或--bourne-shell  显示在Boume shell中,将LS_COLORS设为目前预设置的shell指令。 
 -c或--csh或--c-shell  显示在C shell中,将LS_COLORS设为目前预设置的shell指令。 
 -p或--print-database  显示预设置 
 -help  显示帮助。 
 -version  显示版本信息。

dircolors

dircolors [options] [file]

Set the color options for ls by changing the LS_COLORS environment variable. If you specify a file, dircolors will read it to determine which colors to use. Otherwise, it will use a default set of colors.

Options

The program takes three options in addition to the standard --help and --version flags:

-p, --print-database

Display the default colors. You can copy this information into a file and change it to suit your preferences, and then run the program with the file as its argument to set the colors to your new values.

-c, --csh, --c-shell

Use csh (C shell) syntax when setting the LS_COLORS variable.

-b, --sh, --bourne-shell

Use the Bourne shell syntax when setting the LS_COLORS variable.