Linux / UNIX Tech Support Forum
This is a discussion on How to make bash prompt permanent? within the Getting started tutorials forums, part of the Linux Getting Started category; In my RHEL 4 system, my current bash promt is \s - \v $ It is the default bash prompt. ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
In my RHEL 4 system, my current bash promt is
\s - \v $ It is the default bash prompt. However, I wish to make the bash prompt as [\u@\h \W]# I have tried to set bash prompt using command PS1="[\u@\h \W]#" But it remains till I logout the system. But when I logout the system, the bash prompt automatically changes to the default prompt. I will appreciate any ideas from you. waiting for your suggestions in this case. |
| Sponsored Links | ||
|
|
|
||||
|
Add your prompt to ~/.bash_profile (/home/you/.bash_profile or /root/.bash_profile)
Code:
export PS1="my prompt"
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| set timeout for ssh prompt | vikas027 | Shell scripting | 0 | 23-04-2008 12:06 AM |
| script to prompt for password for AIX | shipon_97 | Shell scripting | 0 | 15-04-2008 04:45 PM |
| Permanent Route entry in RHEL 5 | santoshdhumal | Networking, Firewalls and Security | 1 | 17-03-2008 10:12 PM |
| Backup mysql from shell prompt or script | raj | Linux software | 0 | 29-07-2006 11:17 PM |
| Static Route in Linux, permanent | puppen | Linux software | 3 | 13-04-2006 09:06 PM |