English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Comprehensive List of Linux Commands
The Linux dircolors command is used to set the colors used by the ls command when displaying directories or files.
dircolors can set the LS_COLORS environment variable or display the shell command to set the LS_COLORS environment variable according to the [color configuration file].
dircolors [color configuration file]
or
dircolors [-bcp]--help]--version]
Parameter description:
Display default value
# dircolors -p //Display default value # Configuration file for dircolors, a utility to help you set the # The LS_COLORS environment variable used by GNU ls with the --color option. # Copyright (C) 1996, 1999-2008 # The GNU General Public License for more details. # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the # slackware version of dircolors) are recognized but ignored. # Below, there should be one TERM entry for each termtype that is colorizable TERM Eterm TERM ansi TERM color-xterm TERM con132x25 TERM con132x30 TERM con132x43 TERM con132x60 TERM con80x25 TERM con80x28 TERM xterm-debian # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: # Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white #NORMAL 00 # no color code at all #FILE 00 # regular file: use no color at all RESET 0 # reset to “normal“ color DIR 01;34 # directory LINK 01;36 # symbolic link. (If you set this to 'target' instead of a # numerical value, the color is as for the file pointed to.) HARDLINK 44;37 # regular file with more than one link FIFO 4STICKY_OTHER_WRITABLE33 FIFO # 管道1;35 SOCK 0 # 套接字1;35 DOOR 0 # 门 4STICKY_OTHER_WRITABLE33ORPHAN1 BLK # 块设备驱动程序 4STICKY_OTHER_WRITABLE33ORPHAN1 CHR # 字符设备驱动程序 4STICKY_OTHER_WRITABLE31ORPHAN1 ;0-# 指向不存在文件的符号链接,或非 # 可统计的文件 37;41 SETUID+# setgid (g # setuid (u 3STICKY_OTHER_WRITABLE43 SETGID+# setgid (g s) 3STICKY_OTHER_WRITABLE41 CAPABILITY # 具有能力的文件 3STICKY_OTHER_WRITABLE42 0;-# dir 是粘性和其他+可写 (+t,o w) 34;42 OTHER_WRITABLE-# dir 是其他+可写 (o w) 而不是粘性 37;44 STICKY+# dir 有粘性位设置(-t) 而不是其他 可写 # 这是针对具有执行权限的文件:1;32 # EXEC 0 # 来颜色化以下内容。列出你想要ls颜色化的文件扩展名,如 '.gz' 或 '.tar'。 # (以及你想要在 '#' 后面添加的任何注释) # 如果你使用DOS-# 如果你想使用样式后缀,你可能想取消以下注释: #.cmd 01;32 # 可执行文件(亮绿色) #.exe 01;32 #.com 01;32 #.btm 01;32 #.bat 01;32 # 如果你想即使脚本没有颜色化,也能颜色化它们 # executable bit actually set. #.sh 01;32 #.csh 01;32 # archives or compressed (bright red) .tar 01;31 .pcx 01;35 .mov 01;35 .mpg 01;35 .mpeg 01;35 .m2v 01;35 .mkv 01;35 .ogm 01;35 .mp4 01;35 .m4v 01;35 .mp4v 01;35 .vob 01;35 .qt 01;35 .nuv 01;35 .wmv 01;35 .asf 01;35 .rm 01;35 .rmvb 01;35 .flc 01;35 .avi 01;35 .fli 01;35 .flv 01;35 .gl 01;35 .dl 01;35 .xcf 01;35 .xwd 01;35 .yuv 01;35 # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions .axv 01;35 .anx 01;35 .ogv 01;35 .ogx 01;35 # audio formats .aac 00;36 .au 00;36 .flac 00;36 .mid 00;36 .midi 00;36 .mka 00;36 .mp3 00;36 .mpc 00;36 .ogg 00;36 .ra 00;36 .wav 00;36 # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions .axa 00;36 .oga 00;36 .spx 00;36 .xspf 00;36