tldr/pages/common/dircolors.md

29 lines
635 B
Markdown
Raw Permalink Normal View History

2018-10-12 12:41:07 +03:00
# dircolors
> Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.
> More information: <https://www.gnu.org/software/coreutils/dircolors>.
2018-10-12 12:41:07 +03:00
- 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`
2018-10-12 12:41:07 +03:00
- Output commands to set LS_COLOR using colors from a file:
2022-12-04 12:12:49 +03:00
`dircolors {{path/to/file}}`
2018-10-12 12:41:07 +03:00
- Output commands for Bourne shell:
`dircolors --bourne-shell`
- Output commands for C shell:
`dircolors --c-shell`
- View the default colors for file types and extensions:
`dircolors --print-data`