2026-11-15 08:02 UTC
rm -rf /*
This deletes everything in root; a great way to break your OS and lose all data too.
OP meant to run
rm -rf ./*
Note the period, which represents the current directory. So this deletes everything in the current directory instead of the entire filesystem
Replies (2)
-
@chenwu@lemmy.ca 2026-11-15 10:12
Yes, thats right…
-
@thingsiplay@lemmy.ml 2026-11-15 17:51
This deletes everything in root; a great way to break your OS and lose all data too. Nowadays rm command will prevent doing this, without option –no-preserve-root .