How to hash files in MacOS terminal
Let's say that you have to check the sum of a file you just downloaded. The hash is SHA-256. You would run this command:
shasum -a 256 file_name
Output looks like this:
bla@macos Downloads % shasum -a 256 kali-linux-2023.3-installer-netinst-amd64.iso