sum
file integrityLinux/Unix
The sum command is one of the most frequently used commands in Linux/Unix-like operating systems. sum Compute checksum and count blocks in a file
Quick Reference
Command Name:
sum
Category:
file integrity
Platform:
Linux/Unix
Basic Usage:
sum [options] [arguments]
Common Use Cases
Syntax
sum [options] [file...]
Options
Option | Description |
---|---|
-r |
Use BSD sum algorithm (default) |
-s, --sysv |
Use System V sum algorithm |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the sum
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sum file.txt