LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   default prompt (https://www.linuxquestions.org/questions/linux-newbie-8/default-prompt-37607/)

nero64 12-07-2002 07:09 PM

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

mcleodnine 12-07-2002 07:35 PM

have a look it /etc/skel, and if you have /etc/profile then you can also try 'source /etc/profile'

clavius 12-08-2002 03:41 AM

Quote:

Originally posted by mcleodnine
have a look it /etc/skel, and if you have /etc/profile then you can also try 'source /etc/profile'
# cd /etc/skel
# find -type f | xargs -iZ cp -d Z /root
# find -type d -maxdepth 1 | xargs -iZ cp -dR Z /root
# exit

and login again

jetfreggel 12-08-2002 06:19 AM

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

nero64 12-08-2002 08:50 PM

ok thanks it worked.

I wish i knew what the find parameters meant though ;)

bulliver 12-08-2002 10:49 PM

give "man find" a try

404 12-10-2002 06:16 PM

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 06:14 PM.