Calculating the file digest

The digest of a file can be used to verify file integrity.

Perform this task in user view.

Task

Command

Calculate the digest of a file.

  • Use the SHA-256 digest algorithm:sha256sum file-url

  • Use the MD5 digest algorithm:md5sum file-url