Hacker News new | ask | show | jobs
by ht85 1063 days ago
If you ever type really dangerous commands, it is good practice to prefix them with a space (or whatever your favorite shell convention is) to make sure they not saved in your history.

One of my "oopsies" involved aggressive <up> and <enter> usage and a previous `rm -rf *` running in /home...

1 comments

I didn't know about the space thing!

Though for me, I think the greater risk would be from not having a record of what I'd run.