How to check downloaded files - RayGutt/PersonalWiki GitHub Wiki

shasum --check <checkfile>

# Check file content:
shasum  <checked_file>
# Exemple:
f223790ae3e57893abdeb0e950ef8c6ddd44d0429255374d0a50e47b1d356028  kali-linux-2019.4-kde-amd64.iso
## shasum - 2 spaces - filename
## as generated by the command
## shasum -a 256 <checked_file> > <checkfile>

# Ex:
$ shasum --check kali-linux-2019.4-kde-amd64.SHA256SUM
kali-linux-2019.4-kde-amd64.iso: OK

# Or:
echo "<shasum> <filename>" | shasum --check

# Ex:
$ echo "f223790ae3e57893abdeb0e950ef8c6ddd44d0429255374d0a50e47b1d356028  kali-linux-2019.4-kde-amd64.iso" | shasum --check
kali-linux-2019.4-kde-amd64.iso: OK
⚠️ **GitHub.com Fallback** ⚠️