How To Install Dircolors In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install dircolors
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick 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 copyOutput commands to set LS_COLOR using colors from a file:dircolors fileClick to copyOutput commands for Bourne shell:dircolors --bourne-shellClick to copyOutput commands for C shell:dircolors --c-shellClick to copyView 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.




