Dgst command
From NetworkCommands
A command available with OpenSSL distributions; used to create and display the digest(s) of a file.
Contents |
Usage Syntax
openssl dgst -digest [path/]file
Use the list-message-digest-commands command to list the available digests.
Common digests include;
- -md2
- -md4
- -md5
- -sha
- -sha1
Usage Examples
openssl dgst -md5 /COPYRIGHT
Typical Output
[device-one] / # openssl dgst -md5 /COPYRIGHT MD5(/COPYRIGHT)= f49df64f4d8fb62e09ed5f3944e7bede
Linux Usage Notes
With most Linux or Unix commands;
- Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
- A full command manual can be displayed using the man command followed by the command name, for example: man chmod
- Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
- Version information can be display using the option/keyword: -v or --version, for example: chmod --version
Related Commands
The md5sum and sha1sum commands perform a very similar function.







