Find the answer to your Linux question:
Results 1 to 10 of 10
Hi all I am having problem with fedora 10 Terminal, it used to be when i open it like this: [louie@localhost ~] su [root@localhost louie] and now when I type ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9

    reset terminal back to show [root@localhost louie] instead of bash-3.2#

    Hi all
    I am having problem with fedora 10 Terminal, it used to be when i open it like this:
    [louie@localhost ~] su
    [root@localhost louie]
    and now when I type root password it shows:
    bash-3.2#

    Any idea how to reset terminal back to show [root@localhost louie] instead of bash-3.2#

    Thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    What does it show when you execute su - instead of su ?
    Code:
    su -
    Are all other commands working fine?

    Code:
    su -
    fdisk -l
    pwd
    echo $PS1
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9
    Yes other command works fine.
    I just tried su - and i got the following message:
    su: warning: cannot change directory to /root: No such file or directory

    Please any help

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Did you delete any file/folder? Is it a fresh installation?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9
    It is not fresh installation I had it for long time and I use it everyday. However, I was testing perl file when I noticed the change such change in terminal and I have not delete any file or folders.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    df -h
    su 
    /sbin/fdisk -l
    Do above commands list correct disk space and partition structure?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9
    How fdisk will help retrive [root@localhost louie]?
    Why do I need to do partitions?

  8. #8
    Just Joined!
    Join Date
    Feb 2009
    Location
    USA
    Posts
    21
    Quote Originally Posted by louie-1 View Post
    Hi all
    I am having problem with fedora 10 Terminal, it used to be when i open it like this:
    [louie@localhost ~] su
    [root@localhost louie]
    and now when I type root password it shows:
    bash-3.2#

    Any idea how to reset terminal back to show [root@localhost louie] instead of bash-3.2#

    Thanks
    I think its the problem with your prompt settings
    when you are logged in as louie type,
    Code:
    echo $PS1
    now copy the output of the above command and su to root and type this,
    Code:
    export PS1="<the output of the above command, but change the last $ sign to #>"
    if you want a permanent change, add this line to your .bashrc of root account.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    fdisk -l command will list partition table only. I suggested that command to check if partitions are intact or not.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Feb 2009
    Posts
    9
    Thank you for "digerati" and "devils casper" for ypur help.
    The command "echo $PS1" and "export PS1" worked fine and I was able to go back to root, but it shows the whole path and number as following:
    [root@localhost /home/louie]1
    Is any way I can go back to original ([root@localhost louie] )as it was before?

    I already fixed it back to what it was.
    Again thank you so much

Posting Permissions

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