Hacker News new | past | comments | ask | show | jobs | submit login

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...




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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: