bash history

Ed Greshko Ed.Greshko at greshko.com
Sun Apr 29 00:01:12 UTC 2012


On 04/29/2012 07:44 AM, Peter Gueckel wrote:
> Andy Blanchard wrote:
>
>> What you want is:
>>
>>    export HISTCONTROL=erasedups
> It looked promising, but it doesn't work. I logged out and back in twice, then even 
> completely turned off the computer and back on again, but when I examine the 
> .bash_history file, it is riddled with duplicate commands.
>

I didn't do that much testing.....being summoned for breakfast.  But, it seemed to
work fine for me.

I did 5 cat /etc/hosts followed by 5 ls /tmp and then repeated the cycled.  Logged
out and Logged in and did a cat .bash_history.

The last few lines were....

vi .bash_profile
ls /etc
history
ls
cat .bash_history
cat /etc/hosts
ls /tmp


-- 
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage


More information about the users mailing list