Re: I learnt to test my WHERE clauses on a DELETE with a SELECT first
If i'm typing a particularly long command that will delete or otherwise change a lot of files, I'll either not add the sudo rm
at the start, or type zsudo
in case I accidentally hit the enter key before I'm ready.
I'm sure we've all deleted a parent directory when we were intending to delete a subdir.