rm -rf /

Jan. 16th, 2015 09:44 am
marnanel: (Default)
[personal profile] marnanel
I said elsewhere that "rm -rf /" is special-cased to fail under Linux, and some people asked me about it. FTR here's my answer:

I'd thought rm was a bash builtin, but it isn't. The rm in GNU coreutils, however, does check for the root directory as of 2003-11-09 (by inode number, not by name); the warning message is "it is dangerous to operate recursively on /". You can override this using "--no-preserve-root", though I don't know why you'd want to.

Date: 2015-01-17 02:43 am (UTC)
From: [personal profile] treeowl
I don't really know why they'd bother offering that option either. The only thing I can even imagine would be cleaning up a chroot jail from the inside, which doesn't really seem sensible.

Profile

marnanel: (Default)
Monument

January 2022

S M T W T F S
      1
2345678
9101112131415
1617 1819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 02:37 am
Powered by Dreamwidth Studios