Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@SuperDicq @radmin @taylan >BTW since when do people add --no-preserve-root and why should it be needed?
GNU software always gives you the freedom to perform any operation you want, thus if you want to remove /, you can, although it has a check so you can't accidentally rm -rf /.
Alternatively you can just do rm -rf /* as GNU bash expands that to; `/bin /boot /dev /etc /home /lib /lib64 /media /mnt /opt /proc /root /run /sbin /sys /tmp /usr /var` before rm gets it.
Of course the degenerate BSD rm implementation doesn't obey the user and refuses to remove /.