DIRCOLORS(1) General Commands Manual DIRCOLORS(1)

# [NAME](#NAME)

dircolors - Output commands to set the LS\_COLORS environment variable.

# [SYNOPSIS](#SYNOPSIS)

**dircolors** \[OPTION]... \[FILE]

# [DESCRIPTION](#DESCRIPTION)

Output commands to set the LS\_COLORS environment variable.

# [OPTIONS](#OPTIONS)

[**-b**, **--sh**](#b)

output Bourne shell code to set LS\_COLORS

[**-c**, **--csh**](#c)

output C shell code to set LS\_COLORS

[**-p**, **--print-database**](#p)

print the byte counts

[**--print-ls-colors**](#print)

output fully escaped colors for display

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

# [EXTRA](#EXTRA)

If FILE is specified, read it to determine which colors to use for which file types and extensions. Otherwise, a precompiled database is used. For details on the format of these files, run 'dircolors --print-database'

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-17

---

Document: dircolors(1) from uutils 0.12.0-r0 (Chainguard OS)
Source: https://github.com/uutils/coreutils
