Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

file checksum sha-256

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
file checksum sha-256 <pathname> filename

Description

Calculate the Secure Hash Algorithm 2 family (SHA-256) checksum of a file.

Options

pathname

(Optional) Path to a filename.

filename

Name of a local file for which to calculate the SHA-256 checksum.

Required Privilege Level

maintenance

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

file checksum sha-256

content_copy zoom_out_map
user@host> file checksum sha-256 /var/db/scripts/commitscript.slax

SHA256 (/var/db/scripts/commitscript.slax) =$ABC123

Release Information

Command introduced in Junos OS Release 9.5.

footer-navigation