实际上只需要将ls等命令的--color选项打开即可, 而这些都已存在,只需将~/.bashrc中的注释恢复即可,即下面的蓝色代码:
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='/h:/w/$ '
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'
alias vi='vim'
最后
以上就是坚定流沙最近收集整理的关于恢复Debian下root用户bash高亮显示的全部内容,更多相关恢复Debian下root用户bash高亮显示内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复