News for hackers. Stuff that matters.
Re:Which command did you run 1731 days ago? by amphitheatre on Sunday January 21, 2024 @06:44AM (#39077611)
I find it peculiar to ask this question but then also deduplicate your history file because then you lose complete history and context. Sometimes I've had to issue series of commands to fix a particular problem (changing a kerberos password, fixing the expiry date of a gpg key, etc.) that I can backtrack through the history file to find what I did and how I resolved it, later having to do the same, and according to their settings the first instance would be removed.

Personally, I can't remember the solution to everything I do so having that deduplicated log gives me the full history of what I did and how I resolved it, amongst other uses. Sure, removing duplicate 'ls' entries is fine for example, but for every command? Not so sure.

Re:Which command did you run 1731 days ago? by jefftk on Sunday January 21, 2024 @07:20AM (#39077801)
I also don't understand why they're doing it. On my long-running full history duplicates cost me a factor of 2 in space, and presumably the same in search time (but still perceptually instant).
Re:Which command did you run 1731 days ago? by misternugget on Sunday January 21, 2024 @09:27AM (#39078707)
You know what, you're right. And it's actually something that's been bugging me for a while, I just never got around to fixing it. I'm going to update my config now. Thanks!

(Author of post)