debian下为了安全考虑,root用户ls命令是不显示颜色列表的,使用中感觉不方便
修改:
(root账号)
$ cd
$ vim .bashrc
去掉下面几行的注释
-----------------------------
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
-----------------------------
重新登陆,即可显示彩色的文件列表
参考:http://www.linuxeden.com/forum/thread-160626-1-12.html