Linux/ANSI C/C++/Perl/Python
自由的心,永远飞翔...
 默认的ls 显示目录颜色为蓝色,在暗背景下难以看清。现介绍将目录颜色改为浅兰的方法:

将/etc/DIR_COLORS文件cp到~/下,并改名为.dir_colors,搜索DIR,将其改为01;36(原来为01;34),重新打开term即可。


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



posted on 2006-09-03 14:05 我心飞翔 阅读(2519) 评论(140)  编辑 收藏 引用 所属分类: Linux
评论共2页: 1 2 
Comments
  • # bssgvdpf
    bssgvdpf
    Posted @ 2008-04-01 23:51
    [URL=http://twhlwjzm.com]tklauzel[/URL] <a href="http://vxbqsili.com">hnhsdesr</a> aamzwdjl http://avfavrid.com rzpjplxx xoxhwkoh   回复  更多评论   
  • # rgohqwrf
    rgohqwrf
    Posted @ 2008-04-02 05:33
    ueqruygo http://axlzivep.com vbcksdyy xjinnmlc [URL=http://qzbtypjp.com]ripxloew[/URL] <a href="http://egzavckw.com">qivydtmk</a>   回复  更多评论   
  • # naproxen
    naproxen
    Posted @ 2008-05-02 18:08
    People will buy anything that is one to a customer.  回复  更多评论   
  • # aleve
    aleve
    Posted @ 2008-05-02 22:28
    Eat a third and drink a third and leave the remaining third of your stomach empty. Then, when you get angry, there will be sufficient room for your rage.  回复  更多评论   
  • # order soma online
    order soma online
    Posted @ 2008-05-02 22:34
    What children take from us, they give?We become people who feel more deeply, question more deeply, hurt more deeply, and love more deeply.  回复  更多评论   
  • # ambien
    ambien
    Posted @ 2008-05-02 22:34
    It is wonderful how quickly you get used to things, even the most astonishing.  回复  更多评论   
  • # tizanidine
    tizanidine
    Posted @ 2008-05-02 22:38
    A billion here, a billion there, pretty soon it adds up to real money.  回复  更多评论   
  • # order viagra
    order viagra
    Posted @ 2008-05-03 02:13
    The radical of one century is the conservative of the next. The radical invents the views. When he has worn them out the conservative adopts them.  回复  更多评论   
  • # prozac
    prozac
    Posted @ 2008-05-03 02:14
    Misquotations are the only quotations that are never misquoted.  回复  更多评论   
  • # buy ultram online
    buy ultram online
    Posted @ 2008-05-03 02:15
    People will buy anything that is one to a customer.  回复  更多评论   
  • # plavix
    plavix
    Posted @ 2008-05-03 02:17
    There are a terrible lot of lies going around the world, and the worst of it is half of them are true.  回复  更多评论   
  • # retin-a
    retin-a
    Posted @ 2008-05-03 05:30
    In America, through pressure of conformity, there is freedom of choice, but nothing to choose from.  回复  更多评论   
  • # simvastatin
    simvastatin
    Posted @ 2008-05-03 09:23
    Inside myself is a place where I live all alone and that's where you renew your springs that never dry up.  回复  更多评论   
  • # cheap cialis online
    cheap cialis online
    Posted @ 2008-05-03 12:44
    I cannot believe that the inscrutable universe turns on an axis of suffering; surely the strange beauty of the world must somewhere rest on pure joy!  回复  更多评论   
  • # phentermine online
    phentermine online
    Posted @ 2008-05-03 16:26
    Seize opportunity by the beard, for it is bald behind.  回复  更多评论   
  • # celecoxib
    celecoxib
    Posted @ 2008-05-03 20:13
    My wish is to ride the tempest, tame the waves, kill the sharks. I will not resign myself...  回复  更多评论   
  • # aleve
    aleve
    Posted @ 2008-05-03 20:14
    Hearing voices no one else can hear isn't a good sign, even in the wizarding world.  回复  更多评论   
  • # darvon
    darvon
    Posted @ 2008-05-03 23:54
    By all means marry; if you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher.  回复  更多评论   
  • # zoloft
    zoloft
    Posted @ 2008-05-03 23:56
    You can't have a light without a dark to stick it in.  回复  更多评论   
  • # zopiclone
    zopiclone
    Posted @ 2008-05-04 04:26
    Read over your compositions, and wherever you meet with a passage which you think is particularly fine, strike it out.  回复  更多评论   
  • # lasix
    lasix
    Posted @ 2008-05-04 12:41
    I find it rather easy to portray a businessman. Being bland, rather cruel and incompetent comes naturally to me.  回复  更多评论   
  • # retin-a
    retin-a
    Posted @ 2008-05-04 15:48
    I don't think about risks much. I just do what I want to do. If you gotta go, you gotta go.  回复  更多评论   
  • # hoodia
    hoodia
    Posted @ 2008-05-04 19:46
    There is surely a piece of divinity in us, something that was before the elements, and owes no homage unto the sun.  回复  更多评论   
  • # cheap tramadol online
    cheap tramadol online
    Posted @ 2008-05-04 19:49
    The knowledge of the world is only to be acquired in the world, and not in a closet.  回复  更多评论   
  • # buy levitra
    buy levitra
    Posted @ 2008-05-05 05:34
    You can't have a light without a dark to stick it in.  回复  更多评论   
  • # valium online
    valium online
    Posted @ 2008-05-05 05:36
    We rarely think people have good sense unless they agree with us.  回复  更多评论   
  • # buy prozac
    buy prozac
    Posted @ 2008-05-05 09:26
    The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office.  回复  更多评论   
  • # atorvastatin
    atorvastatin
    Posted @ 2008-05-05 12:36
    A neurosis is a secret that you don't know you are keeping.  回复  更多评论   
  • # venlafaxine
    venlafaxine
    Posted @ 2008-05-05 16:12
    History teaches us that men and nations behave wisely once they have exhausted all other alternatives.  回复  更多评论   
  • # vicodin online
    vicodin online
    Posted @ 2008-05-05 19:42
    Nothing is as certain as that the vices of leisure are gotten rid of by being busy.  回复  更多评论   
  • # cetirizine
    cetirizine
    Posted @ 2008-05-05 23:36
    I have never been especially impressed by the heroics of people who are convinced they are about to change the world. I am more awed by those who struggle to make one small difference after another.  回复  更多评论   
  • # benadryl
    benadryl
    Posted @ 2008-05-06 03:22
    If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things.  回复  更多评论   
  • # generic wellbutrin
    generic wellbutrin
    Posted @ 2008-05-06 03:23
    Experience is a good teacher, but she send in terrific bills.  回复  更多评论   
  • # diazepam
    diazepam
    Posted @ 2008-05-06 03:24
    It is not always the same thing to be a good man and a good citizen.  回复  更多评论   
  • # allopurinol
    allopurinol
    Posted @ 2008-05-06 06:57
    We are inclined to believe those whom we do not know because they have never deceived us.  回复  更多评论   
  • # buy amoxicillin
    buy amoxicillin
    Posted @ 2008-05-06 06:58
    Let not thy will roar, when thy power can but whisper.  回复  更多评论   
  • # order ultram
    order ultram
    Posted @ 2008-05-06 06:59
    You never know how a horse will pull until you hook him up to a heavy load.  回复  更多评论   
  • # sertraline
    sertraline
    Posted @ 2008-05-06 07:02
    Many people weigh the guilt they will feel against the pleasure of the forbidden action they want to take.  回复  更多评论   
  • # purchase valium
    purchase valium
    Posted @ 2008-05-06 10:18
    There is still a difference between something and nothing, but it is purely geometrical and there is nothing behind the geometry.  回复  更多评论   
  • # vicodin
    vicodin
    Posted @ 2008-05-06 13:36
    The truth is always a compound of two half- truths, and you never reach it, because there is always something more to say.  回复  更多评论   
评论共2页: 1 2 

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理