bash history

Ed Greshko Ed.Greshko at greshko.com
Sat Apr 28 23:32:17 UTC 2012


On 04/29/2012 06:15 AM, Peter Gueckel wrote:
> Andy Blanchard wrote:
>
>> HISTIGNORE only deals with consecutive duplicates, IIRC.
>>
>> What you want is:
>>
>>    export HISTCONTROL=erasedups
>>
>> you might also want to add ":ignorespace" to the end of that.  That will
>> cause any command prefixed by a space to be ignored as well - very useful
>> for those long commands that you will only ever run once!
> Thanks. I will change it.
>
http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history

Seems to have some nice examples of the various environment variables.

-- 
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