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 a command line interface.
SHA means Secure Hash Alogorithm. For details about this, see wikipedia.org/wiki/SHA-1 and wikipedia.org/wiki/SHA-2.
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
the
command-line
tools
certutil
and sha256sum
to
display the
SHA-256
checksum of a file
named FILENAME
.
Launch a terminal emulator
and
cd
(change directory)
to the directory that contains FILENAME
.
💡 | On Windows, the following is an easy way to do this.
|
certutil
commandIn 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
💡 |
|
sha256sum
commandIn 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 the GUI variation of 7-Zip is installed on your system and if this option is set:
Integrate 7-Zip to shell context menu
Then, CRC-SHA
> SHA-256
will be
available when you
Shift+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 its 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 related to privacy and security, see Infinite Ink’s…
@nm@mathstodon.xyz
or
#InfiniteInk
in it.