Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sun Solaris 2.5.1 How do I chang

Status
Not open for further replies.

sunsol

Programmer
Oct 8, 2002
1
0
0
CA
Sun Solaris 2.5.1

How do I change the prompt to include the server name?

Thanks in advance.
 
in your .profile or .login add :
set prompt=&quot;`uname -n`<:)\!% &quot; Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
Add this line in your .profile :

export PS1=&quot;[$(hostname)]\$PWD> &quot;

Re-execute your .profile
. /.profile

And the prompt might be like :
[myserversun]/myhomedir/mydir1>

I hope i can help you,
Regards.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top