---
name: "rust-dircolors"
section: "1"
platform: "linux"
package: "rust-coreutils"
version: "0.0.30-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rust-dircolors"
---

# rust-dircolors(1)

Output commands to set the LS\_COLORS environment variable.

## NAME

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

## SYNOPSIS

**dircolors** \[**-b**\|**--sh**\] \[**-c**\|**--csh**\] \[**-p**\|**--print-database**\] \[**--print-ls-colors**\] \[**-h**\|**--help**\] \[**-V**\|**--version**\] \[*FILE*\]

## DESCRIPTION

Output commands to set the LS\_COLORS environment variable.

## OPTIONS

- **-b**, **--sh**

  output Bourne shell code to set LS\_COLORS

- **-c**, **--csh**

  output C shell code to set LS\_COLORS

- **-p**, **--print-database**

  print the byte counts

- **--print-ls-colors**

  output fully escaped colors for display

- **-h**, **--help**

  Print help

- **-V**, **--version**

  Print version

## 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

v0.0.30
