- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Custom 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
02-01-2006 08:50 PM
02-01-2006 08:50 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 08:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 08:57 PM
02-01-2006 08:57 PM
Re: Custom Prompt
export PS1="${PWD} #"
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 08:59 PM
02-01-2006 08:59 PM
Re: Custom Prompt
export PS1="${PWD} #"
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:01 PM
02-01-2006 09:01 PM
Re: Custom Prompt
A better option will be to also display current hostname as well alongwith current directory. To achive this put this entry in /etc/profile
export PS1=`hostname`:'$PWD>>'
Also if te same is required to be in GUI mode then unmark the last line in .dtprofile, of that user's home directory.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:04 PM
02-01-2006 09:04 PM
Re: Custom Prompt
Just put this line at the end of your /etc/profile or .profile
PS1="`tput bold``uname -n``tput rmso` \$PWD > "
export PS1
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:06 PM
02-01-2006 09:06 PM
Re: Custom Prompt
Just put this line at the end of your /etc/profile or .profile
PS1="`tput bold``uname -n``tput rmso` \$PWD > "
export PS1
Good Luck,
Ps;Please do not forget to submit points!!!
:-))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:06 PM
02-01-2006 09:06 PM
Re: Custom Prompt
Hi,
Add the following line in
.profile
export PS1="${PWD}#"
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:19 PM
02-01-2006 09:19 PM
Re: Custom Prompt
Just use PS1 to set your customized shell prompt as many example mentioned above.
[Details # man sh-posix ]
You can also set the prmpt in .profile , by putting like this :
export PS1="`hostname` : $PWD>> : `date |awk '{print $1 $2 $3}' ` >>"
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 08:36 PM
02-05-2006 08:36 PM
Re: Custom Prompt
Solution Accepted.
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 08:41 PM
02-05-2006 08:41 PM
Re: Custom Prompt
You can close this thread, if you found a solution.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 08:47 PM
02-05-2006 08:47 PM
Re: Custom Prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2006 08:48 PM
02-05-2006 08:48 PM
Re: Custom Prompt
Usually PS1 is customized in ~/.kshrc file.
Some admins put it in /.kshrc
Customizing PS2 might cause confusion because what is there by default is expected by most admins.
Congrats on your solution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com