LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2003, 12:53 PM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
Linux oops, undo


Hi, i accidentally wiped out my httpd.conf with an html file, this is how it happened.


tar -cf etc/httpd/conf/httpd.conf var/www/html/index.html

as you can see, i wanted to archive 2 files, but i forgot to add the archive name and it made my httpd.conf the archive name.anyknow have any suggestions as to how i can get it back?

thanks
 
Old 11-10-2003, 06:49 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If you edited it there may be a backup etc/httpd/conf/httpd.conf~ It won't be exactly what you need but may be close. Other than that you'll have to reinstall the rpm to get the default file back.

rpm -qf etc/httpd/conf/httpd.conf
The above will tell you which rpm package you need to install.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Oops! Ran wrong lilo switch. Can I undo? newmoon Linux - General 7 06-23-2005 10:55 AM
Connecting to (oops!!) MS SQLServer from RedHat Linux 9 kasturiranganr Linux - Software 2 09-10-2004 02:54 PM
undo rm * slackmagic General 3 04-25-2004 04:16 PM
i know what i have done ! how do i undo it ? ethereal9 Mandriva 2 10-03-2003 05:19 PM
undo a symbolic link in linux cyber Linux - Software 2 05-16-2003 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:05 AM.

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