Chinaunix

标题: 为什么我新建用户,登陆后不显示用户名和主机名?有截图 [打印本页]

作者: stevenzhang1346    时间: 2012-09-21 09:50
标题: 为什么我新建用户,登陆后不显示用户名和主机名?有截图

一直是如下的问题,请问如何解决啊,谢谢!!!

ubuntu login: zhang
Password:


Last login: Thu Sep 20 11:06:16 PDT 2012 from ccb-PC.mshome.net on pts/2
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)

* Documentation: https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

$
$
$

作者: qazxsw9999    时间: 2012-09-21 11:26
你执行 echo "$PS1"
看看
作者: ziyizhiai    时间: 2012-09-21 11:30
可配置,楼上说的对,man PS1
作者: chenyx    时间: 2012-09-21 13:25
chenyx@chenyx:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
chenyx@chenyx:~$

我的ubuntu正常
作者: zongg    时间: 2012-09-21 14:08
环境变量的问题。
你新建用户的命令可以发上来看一下。
作者: campspirit    时间: 2012-09-21 15:44
ps1变量问题




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2