1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/dircolors.md

25 lines
537 B
Markdown
Raw Normal View History

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