dir_colors(5) File Formats Manual dir_colors(5) dir_colors - dircolors(1) ls(1) LS_COLORS , . : eval `dircolors _/dir_colors` , /etc/profile /etc/csh.cshrc. ( dircolors(1).) /etc/DIR_COLORS, .dir_colors . , . , (#), ( ). . , TERM, . . , . TERM, ( , TERM). -. ( ): TERM _ , , , . TERM, , . COLOR yes|all|no|none|tty ( Slackware; GNU dircolors(1).) , (yes all), (no none), , (tty). no. EIGHTBIT yes|no (Slackware only; ignored by GNU dircolors(1).) Specifies that eight-bit ISO/IEC 8859 characters should be enabled by default. For compatibility reasons, this can also be specified as 1 for yes or 0 for no. The default is no. OPTIONS ( Slackware; GNU dircolors(1).) ls. ls, . , dircolors , . NORMAL , ( ) . NORM. FILE , . DIR , . LINK , . : LNK, SYMLINK. ORPHAN , ( ). , ls LINK. MISSING , ( , ). , ls FILE. FIFO , FIFO ( ). PIPE. SOCK , . DOOR (, fileutils 4.1) , door (Solaris 2.5 ). BLK , . BLOCK. CHR , . CHAR. EXEC , . SUID , set-user-ID. SETUID. SGID , set-group-ID. SETGID. STICKY , (sticky) . STICKY_OTHER_WRITABLE , . OWT. OTHER_WRITABLE , . OWR. LEFTCODE Specifies the left code for non-ISO/IEC 6429 terminals (see below). LEFT. RIGHTCODE Specifies the right code for non-ISO/IEC 6429 terminals (see below). RIGHT. ENDCODE Specifies the end code for non-ISO/IEC 6429 terminals (see below). END. * , , . . Same as *.extension. Specifies the color used for any file that ends in .extension. Note that the period is included in the extension, which makes it impossible to specify an extension not starting with a period, such as ~ for emacs backup files. This form should be considered obsolete. ISO/IEC 6429 (ANSI) color sequences Most color-capable ASCII terminals today use ISO/IEC 6429 (ANSI) color sequences, and many common terminals without color capability, including xterm and the widely used and cloned DEC VT100, will recognize ISO/IEC 6429 color codes and harmlessly eliminate them from the output or emulate them. ls uses ISO/IEC 6429 codes by default, assuming colorization is enabled. ISO/IEC 6429 color sequences are composed of sequences of numbers separated by semicolons. The most common codes are: 0 1 4 5 30 31 32 33 ( ) 34 35 36 37 ( ) 40 41 42 43 ( ) 44 45 46 47 ( ) . ls : NORMAL 0 ( ) FILE 0 DIR 32 LINK 36 ORPHAN MISSING FIFO 31 (FIFO) SOCK 33 BLK 44;37 CHR 44;37 EXEC 35 . , , NORMAL FILE . ( ) ( !) ( ), , . LEFTCODE, RIGHTCODE ENDCODE. ls : LEFTCODE _ RIGHTCODE _ ENDCODE, _ -- , . ENDCODE , LEFTCODE NORMAL RIGHTCODE. (LEFTCODE) (RIGHTCODE) , ( escape- ). , , . : ENDCODE , . , NORMAL . , ENDCODE, . To specify control- or blank characters in the color sequences or filename extensions, either C-style \-escaped notation or stty-style ^-notation can be used. The C-style notation includes the following characters: \a (ASCII 7) \b (ASCII 8) \e (ASCII 27) \f (ASCII 12) \n (ASCII 10) \r (ASCII 13) \t (ASCII 9) \v (ASCII 11) \? (ASCII 127) \nnn ( ) \xnnn ( ) \_ \\ (\) \^ Caret (^) \# (#) , , , , , . /etc/DIR_COLORS ~/.dir_colors dir_colors, fileutils-4.1; . The default LEFTCODE and RIGHTCODE definitions, which are used by ISO/IEC 6429 terminals are: LEFTCODE \e[ RIGHTCODE ENDCODE . . dircolors(1), ls(1), stty(1), xterm(1) Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 28 2024 . dir_colors(5)