4 ms·
Also "rm -rf /*". It taught generations of sysadmins and programmers not to run code they don't understand.
by Hitton 7y ago
Also "rm -rf /*". It taught generations of sysadmins and programmers not to run code they don't understand.
- 0x8BADF00D 7y agoMore generally, it taught us to be careful with string substitution and interpolation.
- Analemma_ 7y agoWell, "us" except Unix and Unix-like developers, where "rm -rf /*" still works like it always did, unless your rm added --no-preserve-root or some similar ugly hack.
- Izkata 7y agoThere's actually (at least) two versions of GP's comment - unsafe code/data, what you appear to be referring to: rm -rf $FOO/* And typos, which is what I first thought of upon reading it: rm -rf . /*
- magoghm 7y agoTo err is human, to really foul up requires the root password.
- aepiepaey 7y ago:(){:|:&};: