snippetbashTip
dircolors — Output commands to set the `$LS_COLOR` environment variable and style `ls`, `dir`, etc. More informa
Viewed 0 times
thecommanddircolorscommandsclils_colorsetoutput
Problem
How to use the
dircolors command: Output commands to set the $LS_COLOR environment variable and style ls, dir, etc. More information: <https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html>.Solution
dircolors — Output commands to set the $LS_COLOR environment variable and style ls, dir, etc. More information: <https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html>.Output commands to set
$LS_COLOR using default colors:dircolorsDisplay each filetype with the color they would appear in
ls:dircolors --print-ls-colorsOutput 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]}}Code Snippets
Output commands to set `$LS_COLOR` using default colors
dircolorsDisplay each filetype with the color they would appear in `ls`
dircolors --print-ls-colorsOutput 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]}}Context
tldr-pages: common/dircolors
Revisions (0)
No revisions yet.