On Mon, Jan 04, 2016 at 09:30:37PM +0100, Piotr Grzybowski wrote: > On Mon, Jan 4, 2016 at 9:19 PM, Victor Porton <por...@narod.ru> wrote: > > It is important for security: > > > > It should be easy to remove lines with passwords and potentially harmful > > commands (like sudo with rm). > > never put your passwords in plain text in commands, thats important > for security. If, for some reasons, you have to type sensitive data > inline, take any precautions available to not to put the command in > the history.
Such measures may include prefixing the command with a space when you enter it, if you have ignorespace or ignoreboth in the HISTCONTROL variable.