3 ms·
> It will definitely stop you from running that command because of "--preserve-root" that is enabled by default Until you come across a system old enough that
by MarsIronPI 9mo ago
> It will definitely stop you from running that command because of "--preserve-root" that is enabled by default
Until you come across a system old enough that the coreutils' rm doesn't have that safeguard. And that is how I accidentally'd my OLPC XO's Fedora install.
- rpigab 9mo agoHa ha, I think the busybox rm implementation also doesn't have it, be careful, it's present in lightweight containers, even though it's probably a recent thing. Can't speak for MacOS too. TBF, this safeguard has never saved me, being careful saved me. You can afford to take the time to be careful, because writing the powershell equivalent is probably at least ten times longer (just kidding, or am I?), and clicking buttons in the file explorer is a hundred times longer. Always write the "-rf" after writing the path! I never run rsync without a dry-run, too, even without --delete.