2018-10-12 10:41:07 +01:00
|
|
|
# dircolors
|
|
|
|
|
|
|
|
> Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.
|
2021-04-01 16:54:26 +01:00
|
|
|
> More information: <https://www.gnu.org/software/coreutils/dircolors>.
|
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:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`dircolors {{path/to/file}}`
|
2018-10-12 10:41:07 +01: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`
|