4 ms·
Put a space before the command and it's gone from the history, AFAIR.
Put a space before the command and it's gone from the history, AFAIR.
Yes but very easy to forget to do. BTDT.
This is only true in bash if HISTCONTROL contains ignorespace or ignoreboth (ignoreboth implies ignorespace and ignoredups), so you should check that before relying on this functionality.