Limiting .bash_history inputs

Ed Greshko Ed.Greshko at greshko.com
Sun Mar 31 02:11:34 UTC 2013


On 03/31/13 09:23, Ed Greshko wrote:
> On 03/31/13 09:12, Roger wrote:
>> I am using Fedora 18.
>> A long time ago someone asked for a way to stop repeat commands like clear, ls -aFl,  and others from going into .bash_history.
>> Can someone please tell  me what the command was.
>> Thanks Roger
> I think you are looking for the environment variable
>
> HISTCONTROL=ignoredups
>

Or maybe you want HISTCONTROL=erasedups

-- 
>From now on, at least during winter time, Im going to blame all spelling an grammar erros on the cat sitting on my chest every time I sit down at the computer....


More information about the users mailing list