debian设置vim颜色与SecureCRT的颜色设置方法讲过怎么设置vim的颜色。但是如果要改系统的文件及文件夹的颜色呢?
这时需要更改”.bashrc”这个文件,我的.bashrc文件是以下这样的..

  1. root@debian:~# vi /root/.bashrc

  2. # ~/.bashrc: executed by bash(1) for non-login shells.

  3. #export PS1='\h:\w\$ '

  4. exportPS1='\[\033[1;32;40m\]\u@\h:\w\$ \[\033[0m\]'

  5. umask022

  6. # You may uncomment the following lines if you want `ls' to be colorized:

  7. exportLS_OPTIONS='--color=auto'

  8. eval"`dircolors`"

  9. aliasls='ls $LS_OPTIONS'

  10. aliasll='ls $LS_OPTIONS -l'

  11. aliasl='ls $LS_OPTIONS -lA'

  12. #

  13. # Some more alias to avoid making mistakes:

  14. # alias rm='rm -i'

  15. # alias cp='cp -i'

  16. # alias mv='mv -i'



改完要退出再登陆,就可以看到了。SecureCRT也是如此。