3 ms·
Is `yes | rm -r` safer than `rm -rf`?
- necovek 5y agoNobody mentions that 'rm -rf' is considered dangerous due to frequent problems in variable substitution when done in scripts and such: this is the most common source of issues with it afaik (eg. 'rm -rf /$mypath' will nuke everything if mypath is empty).