3 ms·
rm -rf / gives no such warnings, and maybe it should, or maybe people should be _very_ careful when typing rm -rf in front of anything.
by johnwheeler 5y ago
rm -rf /
gives no such warnings, and maybe it should, or maybe people should be _very_ careful when typing rm -rf in front of anything.
- alecbz 5y agoIt’s both, but mostly the first one. rm’s default behavior is terrible design. Just because UNIX does something doesn’t make it good.
- mjyut 5y ago> GNU rm normally declines to operate on any directory that resolves to /. https://www.gnu.org/software/coreutils/manual/html_node/Treating-_002f-specially.html https://www.gnu.org/software/coreutils/manual/html_node/Trea...