AIX PS1
By default, there's little information in prompt for a new user in KSH. If you're used to Linux BASH prompt, then we should change it into more informative:
$ vi ~/.profile
...
typeset +x PS1="[$USER@$(hostname -s) "'${PWD##*/}'"]\$ "
To make it take effect immediately, we can do this:
$ . ~/.profile
[oracle@boston admin]$ pwd
/u01/app/oracle/product/19.0.0/db_1/network/admin
The command prompt shows 3 things:
- Username
- Hostname
- Directory
That's better.