- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: view path on 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
06-20-2005 07:00 PM
06-20-2005 07:00 PM
Im using UX 11.
How to set the prompt to become a path directory what i was in.
eg.> if in go to /temp, the prompt become /temp.
Please help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:05 PM
06-20-2005 07:05 PM
Re: view path on prompt
Add this to your /root/.profile
PS1="$(hostname):\$PWD\# "
export PS1
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:06 PM
06-20-2005 07:06 PM
Re: view path on prompt
export PS1="\$PWD $"
You can add the above command in your .profile file, so that it gets executed everytime you login. In addition you can add more things to your prompt, like username and hostname.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:07 PM
06-20-2005 07:07 PM
Re: view path on prompt
Try to add this into your .profile :
USER=`whoami`
export USER
HOSTNAME=`hostname`
export HOSTNAME
PS1='[$USER@$HOSTNAME] $PWD > '
export PS1
Hope this can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:11 PM
06-20-2005 07:11 PM
Re: view path on prompt
HOST=`uname -n`;PS1="\$HOST:\$LOGNAME:\$PWD $ ";export PS1
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:21 PM
06-20-2005 07:21 PM
Re: view path on prompt
i try to change the script that all of you provide but i failed.
how to make it like this..
#
tq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:35 PM
06-20-2005 07:35 PM
Re: view path on prompt
HOST=`uname -n`;PS1="\$HOST:\$LOGNAME:\$PWD \n# ";export PS1
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:48 PM
06-20-2005 07:48 PM
Re: view path on prompt
Once you update the /.profile, you need to logout & login to see the result.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:52 PM
06-20-2005 07:52 PM
Re: view path on prompt
can i make the prompt and dir path in different line..
#
tq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:07 PM
06-20-2005 08:07 PM
Re: view path on prompt
export PS1="<\$PWD> \n#"
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:13 PM
06-20-2005 08:13 PM
Re: view path on prompt
i need to make it in separate line..
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:38 PM
06-20-2005 08:38 PM
Re: view path on prompt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:40 PM
06-20-2005 08:40 PM