在debian設置vim顏色與SecureCRT的顏色設置方法講過怎麼設置vim的顏色。但是如果要改系統的文件及文件夾的顏色呢?
這時需要更改”.bashrc”這個文件,我的.bashrc文件是以下這樣的..
root@debian:~# vi /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
#export PS1='\h:\w\$ '
exportPS1='\[\033[1;32;40m\]\u@\h:\w\$ \[\033[0m\]'
umask022
# You may uncomment the following lines if you want `ls' to be colorized:
exportLS_OPTIONS='--color=auto'
eval"`dircolors`"
aliasls='ls $LS_OPTIONS'
aliasll='ls $LS_OPTIONS -l'
aliasl='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
改完要退出再登陸,就可以看到了。SecureCRT也是如此。