Find the answer to your Linux question:
Results 1 to 7 of 7
hi, i am using RedHat 9.... somehow the terminal prompt has changed and also the panel is missing.... how do i change it back to normal prompt (i remember there ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41

    terminal prompt


    hi,

    i am using RedHat 9....
    somehow the terminal prompt has changed and also the panel is missing....
    how do i change it back to normal prompt (i remember there used to be some command to change prompts...)

    my original terminal used to be root and now it is bash-2.05b#.......
    how do i get back my panel....

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Code:
    export PS1='\u@\h:\w\$ '
    Add that line to your /root/.bash_profile, that should do the trick.
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41
    i think i have deleted that file by mistake.....
    maybe thats the reson why the shell promt has changed....

    now what should i do.....
    can any other option work for me....

  4. #4
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Code:
    echo "export PS1='\u@\h:\w\$ '" > /root/.bash_profile
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  5. #5
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41
    it is not working....
    the file .bash_profile is not present in tht root dir even after that command....
    i tried tht command but nothing happened....

  6. #6
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    It's impossible.. edit /root/.bash_profile yourself.. with any editor you want.. it doesn't matter that its' not there, create it.
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  7. #7
    Linux Engineer
    Join Date
    Mar 2005
    Location
    Where my hat is
    Posts
    766
    Quote Originally Posted by anamikasoni
    it is not working....
    the file .bash_profile is not present in tht root dir even after that command....
    i tried tht command but nothing happened....
    It's a hidden file. How are you searching for it?
    Registered Linux user #384279
    Vector Linux SOHO 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •