Oracle Solaris System Administration (MOSC)

MOSC Banner

Changing the prompt via .profile

edited Nov 13, 2013 2:14AM in Oracle Solaris System Administration (MOSC) 4 commentsAnswered ✓
Hi experts.
I want to change the prompt so that dynamically I can see the path that I'am in and also if I do a su the user that I'am log in. Also the host.
Right now I only see this but when I change the directory the prompt does not change dinamically.

bayorac-02:/export/home/oracle> cd dba
bayorac-02:/export/home/oracle> pwd
/export/home/oracle/dba

extract of .profile:

PS1="`hostname`:"`pwd`"> "
export PS1

uname -a:

SunOS bayorac-02 5.10 Generic_147441-12 i86pc i386 i86pc

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center