30. linux用su oracle 切换用户报“连接数据库报-bash-4.1$”处理方式

直接在-bash-4.1$后面加上export PS1="[u@h w]"即可,如下:

[root@localhost usr]# su oracle
-bash-4.1$ export PS1="[u@h w]"

原文地址:https://www.cnblogs.com/zkx4213/p/8359836.html