Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

dircolors

v0.13.0
dircolors [OPTION]... [FICHIER]

Afficher les commandes pour définir la variable d’environnement LS_COLORS.

Options

--sh, --bourne-shell, -b

output Bourne shell code to set LS_COLORS

--csh, --c-shell, -c

output C shell code to set LS_COLORS

--print-database, -p

print the default color database

--print-ls-colors

output fully escaped colors for display

Si FICHIER est spécifié, le lire pour déterminer quelles couleurs utiliser pour quels types de fichiers et extensions. Sinon, une base de données précompilée est utilisée. Pour les détails sur le format de ces fichiers, exécutez ‘dircolors –print-database’

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Output commands to set $LS_COLOR using default colors:

dircolors

Display each filetype with the color they would appear in ls:

dircolors --print-ls-colors

Output commands to set $LS_COLOR using colors from a file:

dircolors {{path/to/file}}

Output commands for Bourne shell:

dircolors {{[-b|--bourne-shell]}}

Output commands for C shell:

dircolors {{[-c|--c-shell]}}

View the default colors for file types and extensions:

dircolors {{[-p|--print-database]}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.