-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux sha256sum Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to sha256sum on Linux, covering Arch Linux, CachyOS, and other distributions including SHA256 checksums, file integrity verification, and secure hashing.
sha256sum computes SHA256 checksums.
Uses:
- File integrity: Verify file integrity
- Secure hashing: Generate secure hashes
- Verification: Verify file authenticity
- Data validation: Validate data
Why it matters:
- Security: More secure than MD5
- File verification: Verify file integrity
- Data integrity: Ensure data integrity
Basic usage:
# Generate SHA256
sha256sum file.txt
# Output: hash file.txtCheck several:
# Multiple files
sha256sum file1.txt file2.txt file3.txt
# Checksum for eachSave checksums:
# Save to file
sha256sum file.txt > checksums.sha256
# Or all files
sha256sum *.txt > checksums.sha256Verify checksums:
# Check format
sha256sum -c checksums.sha256
# -c = check (verifies checksums)Check integrity:
# Verify file
sha256sum -c checksums.sha256
# Reports OK or FAILEDQuiet output:
# Quiet mode (only failures)
sha256sum -c --quiet checksums.sha256
# Only shows failuresCheck installation:
# Check sha256sum
which sha256sum
# Usually in coreutils
# Install if missing
sudo pacman -S coreutilsThis guide covered sha256sum usage, checksum generation, and file verification for Arch Linux, CachyOS, and other distributions.
- md5sum Guide - MD5 checksums
- sha512sum Guide - SHA512 checksums
-
sha256sum Documentation:
man sha256sum
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.