tldr/pages/common/dircolors.md

25 lines
562 B
Markdown
Raw Normal View History

2018-10-12 10:41:07 +01:00
# 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>.
2018-10-12 10:41:07 +01:00
- Output commands to set LS_COLOR using default colors:
`dircolors`
- Output commands to set LS_COLOR using colors from a file:
`dircolors {{file}}`
- 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`