← All commands
Topic hub Security & Permissions
Windows Linux Security & Permissions Expanded guide File System

Windows verify / certutil -hashfile equivalent in Linux

Generates or checks checksums to verify that files have not been corrupted or tampered with.

Windows verify / certutil -hashfile
→
Linux equivalents
Debian/Ubuntu same command
sha256sum
Fedora same command
sha256sum
Arch same command
sha256sum

Overview

What this command does

On Windows, "verify / certutil -hashfile" is used to verify file integrity with checksums. On Linux, the closest practical mapping shown here is "sha256sum". Generates or checks checksums to verify that files have not been corrupted or tampered with. This reference is grouped under Security & Permissions → File System.

Migration tip: Always verify downloads using the checksum provided by the source. <strong>SHA-256</strong> is preferred over MD5 as it is more secure. Many Linux ISO download pages provide a .sha256 file.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows verify / certutil -hashfile maps to sha256sum for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Practical tasks

Common use cases

Verify file integrity with checksums

Generates or checks checksums to verify that files have not been corrupted or tampered with.

sha256sum file

Generate SHA-256 checksum

sha256sum -c file.sha256

Verify against checksum file

md5sum file

Generate MD5 checksum (legacy)

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

sha256sum ubuntu.iso
sha256sum -c ubuntu.iso.sha256
md5sum file1.txt file2.txt

Walkthrough

Examples with explanations

# Windows: certutil -hashfile file SHA256

# Generate:
sha256sum ubuntu.iso
a1b2c3d4... ubuntu.iso

# Verify a download:
sha256sum -c ubuntu.iso.sha256
ubuntu.iso: OK

# Compare two files are identical:
md5sum file1.txt file2.txt

Reference

Common options and variations

Command or optionUse
sha256sum fileGenerate SHA-256 checksum
sha256sum -c file.sha256Verify against checksum file
md5sum fileGenerate MD5 checksum (legacy)
sha1sum fileGenerate SHA-1 checksum

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "sha256sum" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command sha256sum Same command on this distribution.
Fedora same command sha256sum Same command on this distribution.
Arch same command sha256sum Same command on this distribution.

Keep learning

Related Security & Permissions commands