Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我sudo su在我的 mac os x (10.8.5) MacBook Air 上运行时,外壳由于某种原因发生了变化:
sudo su
bos-mp2o6:~ rabdelaz$ sudo su Password: sh-3.2#
那是怎么回事?
我做的唯一一件事就是安装 Heroku Toolbelt,并在获得sudo: unable to cache user root, already exists之后重新启动。
sudo: unable to cache user root, already exists
当您使用sudo su时,它会运行超级用户的.bashrc,因此您会得到它的提示而不是您自己的提示。
.bashrc