Accidentally typed password into terminal?

Have you accidentally typed password into terminal? Don’t worry!

The probabilities are that this happened to you already. When you type your password then it gets recorded into bash’s command line history. This is a serious security vulnerability and you should immediately take action!

These are some of the quick fixes I suggest:

  • Change your password. If you do not have this privilege or you do not prefer to change your password you can…
  • Delete your typed password from command line’s history. To do so, input history into the command line. The commands history will show up. Take a note of the line you are interested to delete and input “history -d [line_number]”. Then type “history -w” to save the changes you made to the history.

Discussions — No responses yet