Too often I figure out how to do this or that on Linux systems and in my haste to complete whatever task I've been assigned this "How To" knowledge gets lost. So here, I will begin posting little odds and ends in hopes of not needing to re-research past efforts for Linux tips, tricks, hacks, and other good to know things. If you find yourself here and know of smaller, faster, better ways of doing any of this please let me know - only through cooperation can we all get better.

Checking the hash against a provided list was not as clear from the man pages. In brief you need to use the output of a shasum as input to shasum -c. Here you need only find 'OK' vs. relying on your human ability to visually compare hashes on a terminal.

berlin:tmp bkarels$ shasum -a 256 Fedora-18-x86_64-Live-XFCE.iso | shasum -c Fedora-18-x86_64-Spins-CHECKSUM...shasum: Fedora-18-x86_64-Live-Scientific-KDE.iso: No such file or directoryFedora-18-x86_64-Live-Scientific-KDE.iso: FAILED open or readshasum: Fedora-18-x86_64-Live-Security.iso: No such file or directoryFedora-18-x86_64-Live-Security.iso: FAILED open or readshasum: Fedora-18-x86_64-Live-SoaS.iso: No such file or directoryFedora-18-x86_64-Live-SoaS.iso: FAILED open or readFedora-18-x86_64-Live-XFCE.iso: OKshasum: WARNING: 7 of 8 listed files could not be read

Fin.

NOTE: For clarity, here is the entire contents of the example file Fedora-18-x86_64-Spins-CHECKSUM: