Reply to post: Re: I learnt to test my WHERE clauses on a DELETE with a SELECT first

Techie basks in praise for restoring workforce email (by stopping his scripting sh!tshow)

phuzz Silver badge

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.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon