Y
Hacker News
new
|
ask
|
show
|
jobs
by
Lex-2008
2307 days ago
worth noting that it can be trivially workarounded by adding an asterisk at the end: `rm -rf /*` still works.
2 comments
jeroenhd
2307 days ago
Fair enough, but on the other hand there's nothing preventing you from just putting --no-preserve-root in the command either. I see the feature as something to prevent accidents, not as a way to secure the rm command.
link
tomjakubowski
2306 days ago
That version will helpfully leave behind any .files lingering in /
link