解决debian 6.0 中用xshell 登陆在命令行终端显示彩色的文件及文件夹
现在在玩debian 6.0 了 用xshell 登陆总是显示不出文件 与文件夹 的区别,还不习惯也不方便 经过研究 发现 默认没有启用编辑.bashrc 文件 去掉红色标记前的#号,退出再登陆就在回熟悉的界面了!
vim /root/.bashrc
[*]# ~/.bashrc: executed by bash(1) for non-login shells.
[*]#export PS1='\h:\w\$ '
[*]export PS1='\[\033\u@\h:\w\$ \[\033'
[*]umask 022
[*]
[*]# 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'
[*]#
[*]# Some more alias to avoid making mistakes:
[*]# alias rm='rm -i'
[*]# alias cp='cp -i'
[*]# alias mv='mv -i'
页:
[1]