3 ms·
If he mounted his backup media and wiped it, what makes you think he couldn't cockup the dd command? However, under Linux rm -rf / needs --no-preserve-root to
by chris_wot 11y ago
If he mounted his backup media and wiped it, what makes you think he couldn't cockup the dd command?
However, under Linux rm -rf / needs --no-preserve-root to work, right?
- aroch 11y agoDepends on which version of `rm` you have. Newer versions (rm from coreutils 8.xx I believe) use no-preserve-root
- profmonocle 11y agoAnd the question is tagged centos 7, which is from 2014 - far too recent to not have --no-preserve-root.
- JdeBP 11y agohttps://git.centos.org/log/rpms!coreutils.git/refs!heads!c7 https://git.centos.org/log/rpms!coreutils.git/refs!heads!c7 indicates that CentOS 7 has coreutils 8.22 . http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=34e3ea055721ecc72e6f636700e8ba7b58069c65 http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit... shows that GNU coreutils gained that option in 2003.
- astrodust 11y agoIt's distribution dependent.