4 ms·
> People also sometimes accidentally paste passwords from a password manager into their shell and they end up in their shell history. This can easily happen if
by xdavidliu 6y ago
> People also sometimes accidentally paste passwords from a password manager into their shell and they end up in their shell history. This can easily happen if you are meaning to paste it into some kind of interactive command such as ssh or su and the command doesn't execute the way you expected.
That doesn't seem to be case from the article:
> The entire process took about eight seconds. And then he did what he had always done since he first started programming computers: he deleted his bash history. To access the computer he was required to type his password. If he didn’t delete his bash history, his password would be there to see, for anyone who had access to the system.
It seems that deleting his bash history was something _routine_ that he did every time, not some one-off thing to fix an occasional mistake.