mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
24 lines
457 B
Markdown
24 lines
457 B
Markdown
![]() |
# dircolors
|
||
|
|
||
|
> Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.
|
||
|
|
||
|
- 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`
|