26

always double check your rm -rf command...

long ago, young me was setting up a server. last thing was to remove a temp folder i created. instead of rm -rf /path/to/dir, i typed rm -rf / path/to/dir...
"this should not take so long...wait... shit"

Comments
  • 1
    That's why I always type it without any flags at first. What if you accidentally hit "enter"?
  • 0
    You should now get a message saying that rm -rf / is not allowed.
  • 0
    @apisarenco i did....
  • 0
    @Alkotronikk correct... that was interesting. i aldo tried to reboot the server to see of everything was ok. it was not
  • 2
    I feel you. Did that on my vps that hosted a techblog with 100+ articles. No backups ;_;
  • 0
    I really need to try this in a sandbox environment. I never believed that actually works.
  • 0
    it does ... i hit ^c when i realized what i have done, so i don't know what happens at the end( or after removing the rm command). if you try it, share the results, please @jerodev
Add Comment