Walt Mankowski via plug on 25 Sep 2022 13:54:10 -0700


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

Re: [PLUG] free courses, systemd Win, hashquines


On Sun, Sep 25, 2022 at 03:01:41PM -0400, JP Vossen via plug wrote:
> On 9/25/22 04:29, brent timothy saner via plug wrote:
> > On 9/24/22 16:30, Walt Mankowski via plug wrote:
> ...
> > > I don't trust MD5 for external files, but I still run md5sum on
> > > directories to check for duplicate files, mainly because it's a lot
> > > faster than sha1sum. Are there alternatives you recommend?
> ...
> 
> > Mini-Rosetta for you:
> > (SH) md5sum => b2sum (part of coreutils; it's likely already installed)
> 
> It was already installed for me on Debian-10, which is near EoL.  But holy cow the hashes are long!  I use `md5sum` to compare files a lot [1], in part because the hashes are short and don't make my eyes & brain bleed.

That was my reaction too. You can make them shorter with the -l
parameter, but who knows what that does to the robustness of the
algorithm?

> [1] For example, I'll download the ntp.conf from 50 servers, the `md5sum * | sort` to find which ones are identical.  Then I can work through the files to see if any differences matter, and get it all into Ansible where it belongs, thus reducing technical debt.

I do similar things. I also sometimes end up with half a dozen
spreadsheets with slightly different names (biomed researchers love
spreadsheets!) and I want to check if any of them don't really have
any changes.

Walt
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug