- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX Prompt
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:25 AM
08-08-2006 03:25 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:32 AM
08-08-2006 03:32 AM
Re: HP-UX Prompt
keep an eye on thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1049670
Solution is there.
Welcome to UNIX !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:35 AM
08-08-2006 03:35 AM
Re: HP-UX Prompt
PS1="$(hostname) # "
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:39 AM
08-08-2006 03:39 AM
Re: HP-UX Prompt
Place the following line in your .profile (just your id uses it)
export PS1=`uname -n`:'$PWD`# '
also
export HISTFILE=/root/.sh_history
(assumes root home directory is /root)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:39 AM
08-08-2006 03:39 AM
Re: HP-UX Prompt
You forgot to say
'export PS1'
in .profile after setting it with PS1=...
Nelson,
note that the file to edit changes if you change the login shell (for ex. to csh).
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:42 AM
08-08-2006 03:42 AM
Re: HP-UX Prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:46 AM
08-08-2006 03:46 AM
Re: HP-UX Prompt
By default, "export PS1" exists in ~/.profile, so there is no need to mention it.
Also, Nelson stated that his prompt is #. If he were using csh, the prompt would most likely have been %. And more than the file to edit changing under csh, the syntax of the command changes as well.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2006 03:59 AM
08-08-2006 03:59 AM
Re: HP-UX Prompt
And of course changes many if you change the shell ...
Sorry Nelson, no more chat now :-)