sudo rm -rf / to wipe out all data, for some reason the execution got interrupted.
Now I am left with a shell that only has
cd command!!! (
rm, etc got deleted!)
What should I do to continue the deletion????
|show 3 more comments|
Never, ever run
I assume you wanted to clear out the drive in order to install or reinstall an operating system. If so, just shutdown and install as you would normally. You will be asked to format the drive and I recommend you do so.
If you thought you were deleting something other than your main OS dirve (the equivallent of
For future reference it is never a good idea to wipe a drive that contains the OS you are currently running. Next time, if you want to completely clear out the partition that contains your OS, boot into a live CD or another OS and format it from there.
Get Darik's Boot And Nuke, burn it to a CD, boot that CD and properly delete the contents of your drive.
You can also put DBAN on a USB drive if that makes it easier.