![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
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.
no subject
Date: 2015-01-17 02:43 am (UTC)chroot
jail from the inside, which doesn't really seem sensible.