How To Install Dircolors In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Dircolors In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

dircolors

Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.

Maintainer: Michael Stone



Section: utils

Install dircolors

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc.

How to use dircolors?

Below are few example commands for dircolors that you can use in the terminal.

Output commands to set LS_COLOR using default colors:
dircolorsClick to copy
Output commands to set LS_COLOR using colors from a file:
dircolors fileClick to copy
Output commands for Bourne shell:
dircolors --bourne-shellClick to copy
Output commands for C shell:
dircolors --c-shellClick to copy
View the default colors for file types and extensions:
dircolors --print-dataClick to copy
Installing dircolors command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of dircolors 2026 package in your OS.