Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2002, 07:09 PM   #1
LQ Newbie
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
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:


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
Old 12-07-2002, 07:35 PM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
have a look it /etc/skel, and if you have /etc/profile then you can also try 'source /etc/profile'
Old 12-08-2002, 03:41 AM   #3
Registered: Dec 2002
Location: Romania, Tg-Jiu City
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
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
Old 12-08-2002, 06:19 AM   #4
Registered: May 2002
Posts: 172

Rep: Reputation: 30
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
Old 12-08-2002, 08:50 PM   #5
LQ Newbie
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Original Poster
Rep: Reputation: 15
ok thanks it worked.

I wish i knew what the find parameters meant though
Old 12-08-2002, 10:49 PM   #6
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
give "man find" a try

Last edited by bulliver; 12-08-2002 at 10:53 PM.
Old 12-10-2002, 06:16 PM   #7
Registered: Mar 2002
Location: USA
Distribution: slackware; what else is there?
Posts: 30

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM
Problems changing the default login prompt... wmqman Linux - General 3 09-01-2005 01:30 PM
Default Konsole prompt in Slackware 10 kamransoomro84 Slackware 3 05-13-2005 01:14 PM
GDM doesn't prompt me for default session nuzzy Linux - Software 1 11-14-2004 08:56 AM
New Virtual Servers Default to Default Server Page? DigiDave Linux - Software 4 10-18-2003 03:23 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration