cksum
Quick Reference
Command Name:
cksum
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
Syntax
cksum [OPTION]... [FILE]...
Options
Option | Description |
---|---|
--help |
Display help message and exit |
--version |
Output version information and exit |
Note: The cksum command has few options as it's designed to be a simple, standard utility. For more advanced checksum calculations, consider using md5sum, sha1sum, or sha256sum.
Examples
How to Use These Examples
The examples below show common ways to use the cksum
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
# Calculate checksum for a single file cksum filename.txt
Advanced Examples:
# Verify file integrity by comparing checksums cksum original.iso > original.cksum cksum downloaded.iso | diff - original.cksum