[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature: Easily remove current command from history

From: Victor Porton
Subject: Re: Feature: Easily remove current command from history
Date: Mon, 04 Jan 2016 22:39:56 +0200

On Mon, 2016-01-04 at 15:37 -0500, Greg Wooledge wrote:
On Mon, Jan 04, 2016 at 09:30:37PM +0100, Piotr Grzybowski wrote:
On Mon, Jan 4, 2016 at 9:19 PM, Victor Porton <address@hidden> 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.

I know. But I sometimes forget to put a space. Also some server accounts may be not configured for ignorespace.

Victor Porton - http://portonvictor.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]