dircolors 8.25 命令详解


输出命令以设置 LS_COLORS 环境变量。

另请参阅: ls

Basic Usage     Detailed Usage

dircolors --help
			

基本语法

dircolors [OPTION]... [FILE]
			

若 FILE 被指定, 会读取它以确定颜色用于哪些文件类型和扩展名。 否则, 使用预编译数据库。

有关这些文件格式的细节, 请运行 dircolors --print-database。

选项参数

参数 EN 解释 中文翻译 Remark
-b, --sh, --bourne-shell output Bourne shell code to set LS_COLORS 输出 Bourne Shell 代码以设置 LS_COLORS
-c, --csh, --c-shell output C shell code to set LS_COLORS 输出 C Shell 代码以设置 LS_COLORS
-p, --print-database output defaults 输出默认
--help display this help and exit 显示此帮助并退出
--version output version information and exit 输出版本信息并退出

Basic Usage

Function 命令 文字解释 示例 示例解释
帮助 dircolors --help 展示帮助信息
Version dircolors --version 展示版本信息

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.