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

v(uutils coreutils) 0.8.0
dircolors [OPTION]... [FICHIER]

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

Options

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

afficher le code Bourne shell pour définir LS_COLORS

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

afficher le code C shell pour définir LS_COLORS

--print-database, -p

afficher la base de données de configuration

--print-ls-colors

afficher les couleurs entièrement échappées pour l’affichage

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.