分类: LINUX
2009-06-01 14:59:19
1# Configuration file for the color ls utility
2# This file goes in the /etc directory, and must be world readable.
3# You can copy this file to .dir_colors in your $HOME directory to override
4# the system defaults.
5
6# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
7# pipes. 'all' adds color characters to all output. 'none' shuts colorization
8# off.
9 COLOR tty
10
11# Extra command line options for ls go here.
12# Basically these ones are:
13# -F = show '/' for dirs, '*' for executables, etc.
14# -T 0 = don't trust tab spacing when formatting ls output.
15 OPTIONS -F -T 0
16
17# Below, there should be one TERM entry for each termtype that is colorizable
18TERM linux
19TERM console
20TERM con132x25
21TERM con132x30
22TERM con132x43
23TERM con132x60
24TERM con80x25
25TERM con80x28
26TERM con80x30
27TERM con80x43
28TERM con80x50
29TERM con80x60
30TERM cons25
31TERM xterm
32TERM rxvt
33TERM xterm-color
34TERM color-xterm
35TERM vt100
36TERM dtterm
37TERM color_xterm
38TERM ansi
39TERM screen
40TERM screen.linux
41TERM kon
42TERM kterm
43TERM gnome
44TERM konsole
45
46# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
47 EIGHTBIT 1
48
49# Below are the color init strings for the basic file types. A color init
50# string consists of one or more of the following numeric codes:
51# Attribute codes:
52# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
53# Text color codes:
54# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
55# Background color codes:
56# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
57NORMAL00# global default, although everything should be something.
58FILE00# normal file
59DIR 01;36 # directory
60LINK 01;36 # symbolic link
61FIFO 40;33 # pipe
62SOCK 01;35 # socket
63BLK 40;33;01 # block device driver
64CHR 40;33;01 # character device driver
65ORPHAN 01;05;37;41 # orphaned syminks
66MISSING 01;05;37;41 # ... and the files they point to
67
68# This is for files with execute permission:
69EXEC 01;32
70
71# List any file extensions like '.gz' or '.tar' that you would like ls
72# to colorize below. Put the extension, a space, and the color init string.
73# (and any comments you want to add after a '#')
74.cmd 01;32 # executables (bright green)
75.exe 01;32
76.com 01;32
77.btm 01;32
78.bat 01;32
79.sh 01;32
80.csh 01;32
81.tar 01;31 # archives or compressed (bright red)
82.tgz 01;31
83.arj 01;31
84.taz 01;31
85.lzh 01;31
86.zip 01;31
87.z 01;31
88.Z 01;31
89.gz 01;31
90.bz2 01;31
91.bz 01;31
92.tz 01;31
93.rpm 01;31
94.cpio 01;31
95.jpg 01;35 # image formats
96.gif 01;35
97.bmp 01;35
98.xbm 01;35
99.xpm 01;35
100.png 01;35
101.tif 01;35