Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Dgst command

From NetworkCommands


Image:Tux_64x64.png

A command available with OpenSSL distributions; used to create and display the digest(s) of a file.

Contents

Image:Vm-power-on-medium.png 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

Image:Vm-power-on-medium.png Usage Examples

openssl dgst -md5 /COPYRIGHT

Image:utilities-terminal-medium.png Typical Output

[device-one] / # openssl dgst -md5 /COPYRIGHT
MD5(/COPYRIGHT)= f49df64f4d8fb62e09ed5f3944e7bede

Image:accessories-text-editor-v2-medium.png 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


Image:icemon-medium.png Related Commands

The md5sum and sha1sum commands perform a very similar function.


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 26 August 2008, at 18:41. - This page has been accessed 50 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki