diff --git a/pages/linux/dircolors.md b/pages/linux/dircolors.md new file mode 100644 index 0000000000..2f48d073c8 --- /dev/null +++ b/pages/linux/dircolors.md @@ -0,0 +1,23 @@ +# 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`