shasum核对文件hash值
确保CHECKSUM文集和要核对文件都在当前目录, 比如:
% ls
CHECKSUM.SHA256-FreeBSD-13.0-RELEASE-amd64
FreeBSD-13.0-RELEASE-amd64-bootonly.iso
FreeBSD-13.0-RELEASE-amd64-dvd1.iso
检查命令如下:
shasum -a 256 --ignore-missing -c CHECKSUM.SHA256-FreeBSD-13.0-RELEASE-amd64
输出结果如下:
FreeBSD-13.0-RELEASE-amd64-bootonly.iso: OK
FreeBSD-13.0-RELEASE-amd64-dvd1.iso: OK