Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1606311
  • 博文数量: 245
  • 博客积分: 10378
  • 博客等级: 上将
  • 技术积分: 2571
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-27 08:19
文章分类

全部博文(245)

文章存档

2013年(4)

2012年(8)

2011年(13)

2010年(68)

2009年(152)

分类: Python/Ruby

2012-11-13 13:45:56

Issue:  
1.  VM  Host的命令提示符:  bash-3.2@host$
  期望是:  username@host

点击(此处)折叠或打开

  1. bash-3.2$ echo $PS1
  2. \s-\v\$
  3. bash-3.2$ export PS1="\u@\h:\w\$"
Comment:  
1.  \u : username
2.  \h : hostname
3.  \w : working dir  path

add those  change  to the system  profile file 
1. make sure you are a root user
2. edit  /etc/profile file.  find  the segment related "PS1", add:
   export  PS1="\u@\h:\w\$"


Reference:
阅读(1207) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~