certutil -hashfile FILENAME sha256 ^^^^^^^^ use actual file name here
This article assumes you know how to…
launch a terminal emulator,
identify the command-line shell you are using (Bash, CMD, PowerShell, etc.), and
use the command line.
SHA means Secure Hash Alogorithm.
I’m in the midst of
trying some Linux distributions
and for each .iso
file
I download,
I need to check its
checksum
as part of making
sure I
don’t
install
a trojan horse operating system.
In this section
I describe
how to use
two
command-line
tools
(cerutil
and sha256sum
)
that
display the
SHA-256
checksum of a file
named FILENAME
.
Launch a terminal emulator
and change directory (cd
) to the directory that contains FILENAME
.
💡 | On Windows, the following is an easy way to do this.
|
certutil
command (PowerShell and cmd.exe)In PowerShell or cmd.exe,[4] run the following commands.
To check if the certutil
command is available, run where.exe certutil
To check if FILENAME
is in the current directory, run
dir
or
dir |more
To display the SHA-256 checksum of FILENAME
, run
certutil -hashfile FILENAME sha256 ^^^^^^^^ use actual file name here
💡 | To avoid typing more than the first few characters of FILENAME, you can use tab completion. |
sha256sum
command (Unix-like shells)In a Unix-like shell, including Git Bash,[3] run the following commands.
To check if the sha256sum
command is available, run which sha256sum
To check if FILENAME
is in the current directory, run
ls
or
ls |less
To display the SHA-256 checksum of FILENAME
, run
sha256sum FILENAME
💡 |
|
If you have installed the GUI variation of 7-Zip and selected the option called…
…then CRC-SHA
> SHA-256
will be
available when you Right-click on FILENAME
in your GUI file manager.
💡 | To view and possibly edit 7-Zip’s options,
launch 7zFM (7-Zip File Manager) and
choose Options… from the Tools menu. |
In Dolphin, which is KDE’s default GUI file manager, do the following.
Right-click FILENAME
.
Choose Properties.
Select the Checksums
tab.
Next to the checksum you’re interested in (e.g., SHA256
), Select Calculate
.
For more about privacy and security, see Infinite Ink’s…
Your public comment or question might immediately improve this page or help me to (eventually) improve this page.