- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: setting user prompt
Operating System - Linux
1752290
Members
5114
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-14-2002 05:15 PM
тАО06-14-2002 05:15 PM
/bin/bash shell
user@host[pwd]
pwd is full path can anyone help me...?
user@host[pwd]
pwd is full path can anyone help me...?
Step by step
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2002 07:20 PM
тАО06-14-2002 07:20 PM
Re: setting user prompt
Hi
I am using RH7.3.
The default prompt is [user@host dir]$.
Then I checked out "echo $PS1".
[\u@\h \W]\$
So I want to change my prompt something like yours, I set my PS1 as,
PS1=\\u@\\h[\\W]\$
Of course you have to put this command into your .bash_profile or .bashrc in your home directory.
Good luck
I am using RH7.3.
The default prompt is [user@host dir]$.
Then I checked out "echo $PS1".
[\u@\h \W]\$
So I want to change my prompt something like yours, I set my PS1 as,
PS1=\\u@\\h[\\W]\$
Of course you have to put this command into your .bash_profile or .bashrc in your home directory.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2002 12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2002 02:53 PM
тАО06-16-2002 02:53 PM
Re: setting user prompt
The token for the 'full path' (as against just the last dir in path) is \w, not \W.
so:
PS1='\u@\h[\w]\$ '
This is covered in 'man bash', under the section 'PROMPTING'.
so:
PS1='\u@\h[\w]\$ '
This is covered in 'man bash', under the section 'PROMPTING'.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP