$
Learn Linux handbook
en
XP:0
Quest 130Integrity Guardian
+220 XP

Verifying File Integrity (sha256sum & md5sum)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

When downloading critical software, ISO images, or backup tarballs over the network, files can become corrupted by transmission errors or tampered with by malicious actors. In Linux, cryptographic checksums verify file integrity bit-for-bit.

- sha256sum : Computes a 256-bit SHA-2 cryptographic hash.
- md5sum : Computes a 128-bit MD5 digest.
- If a single bit in the file changes, the entire hash string changes completely (the avalanche effect).

Let's verify file checksums. Generate the SHA256 checksum of server.js by running sha256sum server.js. Then, compute its MD5 digest by running md5sum server.js.

Command Syntax Reference

Command / SyntaxDescription
sha256sum server.jsCompute SHA256 checksum of file
md5sum server.jsCompute MD5 digest of file
sha256sum -c checksums.txtCheck files against hash list

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Run sha256sum on server.js
  • ○
    Run md5sum on server.js

Ready to complete Quest 130?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.