Hacker Newsnew | comments | show | ask | jobs | submit login

Alternative and more dramatic method of preventing it being written to your bash history:

  kill -9 $$



kill -9 -1 is better than kill -9 $$

-----


How so?

-----


That post was a troll. -1 is a special PID: It indicates that all processes that you can kill should be.

Kill -9 -1 as root is a surefire way to make a system stop doing anything, fast.

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: