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 ...
- 02-28-2009 #1Just 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
- 02-28-2009 #2
Hi and Welcome !
What does it show when you execute su - instead of su ?
Are all other commands working fine?Code:su -
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
- 02-28-2009 #3Just 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
- 02-28-2009 #4
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
- 02-28-2009 #5Just 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.
- 02-28-2009 #6
Execute this
Do above commands list correct disk space and partition structure?Code:df -h su /sbin/fdisk -l
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 02-28-2009 #7Just Joined!
- Join Date
- Feb 2009
- Posts
- 9
How fdisk will help retrive [root@localhost louie]?
Why do I need to do partitions?
- 02-28-2009 #8Just Joined!
- Join Date
- Feb 2009
- Location
- USA
- Posts
- 21
I think its the problem with your prompt settings
when you are logged in as louie type,
now copy the output of the above command and su to root and type this,Code:echo $PS1
if you want a permanent change, add this line to your .bashrc of root account.Code:export PS1="<the output of the above command, but change the last $ sign to #>"
- 02-28-2009 #9
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
- 03-02-2009 #10Just 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


Reply With Quote
