LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux oops, undo (https://www.linuxquestions.org/questions/linux-general-1/linux-oops-undo-114474/)

sopiaz57 11-10-2003 12:53 PM

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

/bin/bash 11-10-2003 06:49 PM

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.


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