Use the shasum command to display and check/verify SHA checksums on the FreeBSD system.
How to check SHA256 checksum for downloaded FreeBSD DVD or ISO
shasum -a 256 --ignore-missing -c CHECKSUM.SHA256-FreeBSD-13.0-RELEASE-amd64
You must see OK on the screen. For instance:
FreeBSD-13.0-RELEASE-amd64-dvd1.iso: OK
You can use that file when you see OK. Here is how bad checksum looks on the screen:
FreeBSD-13.0-RELEASE-amd64-dvd1.iso: FAILED
shasum: WARNING: 1 computed checksum did NOT match
shasum: CHECKSUM.SHA512-FreeBSD-13.0-RELEASE-amd64: no file was verified
Do now install such a file and again download it.
FreeBSD Command for checking checksum (512)
Again the same syntax, but it is as follows:
shasum -a 512 --ignore-missing -c CHECKSUM.SHA512-FreeBSD-13.0-RELEASE-amd64