Take the 2-minute tour ×  I have accidentally removed my apache2
startup file /etc/init.d/apache2 using rm /etc/init.d/apache2
command.  How can I get that back?  share|improve this question
migrated from stackoverflow.com Jul 2 '10 at 14:28  This
question came from our site for professional and enthusiast
programmers.  By restoring from your backup. –  Amardeep Jul 2
'10 at 13:34 ed can be used (if you have a really good memory).
–  msw Jul 2 '10 at 13:37 Remount read-only. Right now. mount
-oremount,ro /. Then continue looking for recovery programs,
probably on a different machine because a read-only root is not
appreciated by many programs. –  Thomas Jul 2 '10 at 13:39 It's
crazy how the Linux terminal doesn't have a garbage bin. – 
Hermann Ingjaldsson Jul 2 '10 at 14:16 @Hermann: if you are in a
FreeDesktop (Gnome, KDE, XFCE) environment trash
/etc/init.d/apache2 works as does restore-trash. I've never used
them as source control and backups have always been sufficient
and protect against more than a bad