linux登录后出现_bash-4.1#终端提示符异常详解程序员

    如果使用root用户登录出现上述提示,则需要需要重建 /root .bash_profile文件:

1. vi /root .bash_profile

2. 输入如下内容

# .bashrc 
 
# User specific aliases and functions 
 
alias rm='rm -i' 
alias cp='cp -i' 
alias mv='mv -i' 
 
# Source global definitions 
if [ -f /etc/bashrc ]; then 
        . /etc/bashrc 
fi                                                                                                                            
                                                                                                                                   
              

3. 保存

4. source /root .bash_profile

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/1692.html

(0)
上一篇 2021年7月15日 23:15
下一篇 2021年7月15日 23:15

相关推荐

发表回复

登录后才能评论