shasum -a file.txt > file.txt.sha256 #To verify shasum -c file.txt.sha256 #To output the file content cat file.txt.sha256