2 ms·
I did this same thing, except mine was in effect: sudo rm -rf /home/username/something/$SOME_VAR/* by some circumstances, SOME_VAR ended up being set to a s
by nl 10y ago
I did this same thing, except mine was in effect:
sudo rm -rf /home/username/something/$SOME_VAR/*
by some circumstances, SOME_VAR ended up being set to a space. Turns our that rm takes a list of directories to delete, so that deleted everything from the entire server.
Fortunately I had backups. But yeah.. don't do this.
- beaconstudios 10y agothat's an argument for quoting parameters if ever I've heard one!