用户root作为终端ubuntu 11.10的默认值


-1

我已经在vmware工作站7上安装了ubuntu 11.10。当我登录到ubuntu并打开终端时,默认情况下它以root身份登陆。但在安装过程中我给了史蒂夫作为用户名。

如果我给pwd它显示/ home / steve。但终端显示root @ ubuntu-#。

我是linux的新手。如何解决这个问题?


命令whoami说什么?
MariusMatutiae

whoami给史蒂夫
sridhar.bijmc

Answers:


1

输出的事实 我是谁 史蒂夫 意味着你 以root身份登录,但作为史蒂夫。然后 根@ ubuntu-° 只是你的提示。您可以通过以下命令进行更改:

 PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$"

您必须完全按照原样复制它,更好地复制并粘贴它。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.