default prompt
I made a mistake and deleted my /root directory. Is there any sofTware that can undelete it. If not it's not important. Just curious that's all.
When i logged in the terminal prompt looks like this: bash-2.04# before it looked like this: [root@localhost /root]# How do i get it back to what it was before? I don't seem to have any .bash files in the /root..hmmm |
have a look it /etc/skel, and if you have /etc/profile then you can also try 'source /etc/profile'
|
Quote:
# find -type f | xargs -iZ cp -d Z /root # find -type d -maxdepth 1 | xargs -iZ cp -dR Z /root # exit and login again |
look at man bash and search (/) PS1
and look at the discription of the keys and modify your bash.profile and then source .bash_profile |
ok thanks it worked.
I wish i knew what the find parameters meant though ;) |
give "man find" a try
|
why suggest all the search this find that just tell him the command already
pico .bashrc then put in this export PS1="[\u@\h \w] " that will make it just like you had it |
All times are GMT -5. The time now is 10:34 AM. |