solve the problem showing bash-3.2

来源:互联网 发布:服装零售店软件 编辑:程序博客网 时间:2024/05/18 00:41

accidentally delete something i shouldn't. 

showing bash-3.2 without showing my own user name 

first in command line ls -a to check if ur .bashrc is still there 

if not copy from others account  

then command exec /bin/bash to make it effect 

if u want to show time on your account name type

PS1="[\u@\h:\W, \@, \d]> " 

in your .bashrc file and then execute 

for more things about bash prompt click   点击打开链接