how to recover the serever from a rm -rf
the commands which i executed are
cd / rm -rf * how can i recover from this when i restarted the server it went in grub mode |
Quote:
|
In case you don't have a backup, testdisk can recover deleted files in many cases.
|
..or Photorec. And this may sound harsh but in case you don't have a backup now you know why you should have. Besides, some people just have to learn not to fat finger stuff or think about what they do (what's a reboot gonna fix?) the hard way.
|
Quote:
rm -rf * ... is one helluva "fat finger"! |
Yeah, you're right. I'm just trying not to be rude about it.
|
Oh, it can indeed be a "fat finger." I once watched someone starting to type, "rm -rf /*something", got as far as "rm -rf /*", then thought better of it and reached for the backspace key. Those oversized, backward "L" shaped <enter> keys come up awfully close to the backspace key.
|
typing while NOT watching what is being typed
hitting the darn < space> bar after the / will do it every time darn that thumb it will get you every time:doh::cry: |
All times are GMT -5. The time now is 11:00 PM. |