Re: bash history

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ed Greshko wrote:

> 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
> 
> 
I'm thinking you have to start with an empty file. As was said in a former post, it 
doesn't work retroactively.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux