今天登陆到服务器上,发现当切换到oracle用户时,出现“-bash-3.00# ”,不知道是谁删掉了oracle用户下的一些隐含文件。于是百度了一把,发现在环境变量中添加PS1即可:
将 export PS1="[\u@\h \W]\$"
添加到oracle用户的.bash_profile中。
退出后再重新登陆,就会正确显示[oracle@localhost ~]了。
http://blog.itpub.net/14019112/viewspace-263441/
转载于:https://blog.51cto.com/hepeace/1386353