I have file from solaris which have digest -a sha256. But this command is not working in linux. I want the alternative for this command.


digest calculates a message digest, in your case SHA256. On linux you can get this by using the command:


You can either give it a filename as argument, or pipe information into it (which means if you just give the command, it will read what you type until you hit Ctrl+D)

On Ubuntu this command is available from the coreutils package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.