Need a cli to check the sha256 hash of a file To check the sha1 of a file I would use openssl sha1 &lt;file&gt; I'm not sure what to use to check the sha256 hash of the file however, what would you recommend?
You can use

openssl dgst -sha256 &lt;file&gt;


Tested on LibreSSL 2.6.4 on macOS 10.14 (Mojave).



Prior to Mojave you can use openssl sha -sha256 &lt;file&gt; or openssl sha256 &lt;file&gt;.

To check command line options for the openssl sha command: openssl sha -help.