News for hackers. Stuff that matters.
Re:Shell Productivity Tips and Tricks by rrmm on Saturday April 25, 2020 @08:22AM (#22977560)
The worst is when you expect a password prompt so you type the password and hit enter, but you mistyped the original command and you end up typing your password in plaintext onto the command line. oops.
Re:Shell Productivity Tips and Tricks by McKayDavis on Saturday April 25, 2020 @01:36PM (#22979708)
If you're using `bash`, A quick remedy for this is:

  unset HISTFILE
  exit
This prevents `bash` from updating the `~/.bash_history` file on exit with the command you don't want memorialized. (assuming you don't also have some hook that updates your history file after every command)