cksum
Quick Reference
Command Name:
cksum
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Data integrity verification
Verify file integrity using checksums
- 2
File corruption detection
Detect corrupted files by comparing checksums
- 3
Data transfer validation
Verify successful data transfers between systems
- 4
Backup verification
Ensure backup files are not corrupted
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:
cksum filename.txt
cksum file1.txt file2.txt file3.txt
echo "Hello World" | cksum
cksum important_data.bin > important_data.cksum