4 ms·
I never do this, I prefer to recall the actual command to see if it is correct, especially for sudo. The reason is that you might not execute the command you w
by Nick_C 16y ago
I never do this, I prefer to recall the actual command to see if it is correct, especially for sudo.
The reason is that you might not execute the command you were thinking of. The HISTIGNORE variable contains a quasi-regex of commands that are not stored in history. If the previous command matched that regex, you will end up executing the previous command to that one, not what you wanted at all.
Why use HISTIGNORE?. So that things like 'exit' or common commands like 'ls' don't pollute your history file.