JP Vossen via plug on 25 Sep 2022 12:01:45 -0700


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

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


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.

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

Later,
JP
--  -------------------------------------------------------------------
JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
___________________________________________________________________________
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