sha256sum

Use sha256sum to use the SHA-256 algorithm to calculate the digest of a file.

Syntax

sha256sum file-url

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

file-url: Specifies the name of a file.

Usage guidelines

The digest can be used to verify the integrity of the file. For example, you can use this command to calculate the digest of a software image file and compare it with that provided on the Hewlett Packard Enterprise website to identify whether the file has been tampered with.

Examples

# Use the SHA-256 algorithm to calculate the digest of file system.bin.

<Sysname> sha256sum system.bin
SHA256 digest:
0851e0139f2770e87d01ee8c2995ca9e59a8f5f4062e99af14b141b1a36ca152

Related commands

md5sum