debian中修改root用户bash文字颜色

来源:互联网 发布:mac预览全屏快捷键 编辑:程序博客网 时间:2024/06/06 02:17

debian默认root用户的bash中,ls命令显示不带显示彩色的列表
如果要显示颜色,则修改~/.bashrc文件
最终修改为:
-------------------- code ---------------------
# 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'
-------------------- code ---------------------