3 ms·
$ uname -sr FreeBSD 11.1-RELEASE $ rm -rf / rm: "/" may not be removed No idea about other BSDs. Busybox's rm is indeed happy to nuke /.
by jwilk 9y ago
$ uname -sr
FreeBSD 11.1-RELEASE
$ rm -rf /
rm: "/" may not be removed
No idea about other BSDs.
Busybox's rm is indeed happy to nuke /.
- jwilk 9y agoAlso: $ uname -sr OpenBSD 6.1 $ rm -rf / rm: "/" may not be removed
- jwilk 9y agoThe latest POSIX standard actually requires this behavior: If […] an operand resolves to the root directory, rm shall write a diagnostic message to standard error and do nothing more with such operands. Source: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm...