dircolors
v(uutils coreutils) 0.1.0
Options
--sh
,--bourne-shell
,-b
-
dircolors-help-bourne-shell
--csh
,--c-shell
,-c
-
dircolors-help-c-shell
--print-database
,-p
-
dircolors-help-print-database
--print-ls-colors
-
dircolors-help-print-ls-colors
Examples
Output commands to set LS_COLOR using default colors:
dircolors
Display each filetype with the color they would appear in ls
:
dircolors --print-ls-colors
Output commands to set LS_COLOR using colors from a file:
dircolors {{path/to/file}}
Output commands for Bourne shell:
dircolors {{[-b|--bourne-shell]}}
Output commands for C shell:
dircolors {{[-c|--c-shell]}}
View the default colors for file types and extensions:
dircolors {{[-p|--print-database]}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.