自定义Linux命令提示符
如题所示,这其实是一个非常常见的需求。
具体配置如下所示:
1 2 3 4 5 |
[root@ora12c ~]# su - oracle [oracle@ora12c ~]$ export PS1='[\u@\h - ${ORACLE_SID}:\w]$ ' [oracle@ora12c - yayu:~]$ cd /u01 [oracle@ora12c - yayu:/u01]$ export ORACLE_SID=amy [oracle@ora12c - amy:/u01]$ |
————————————————
Ending。