| SUM(1) | General Commands Manual | SUM(1) |
NAME¶
sum - Checksum and count the blocks in a file.
With no FILE, or when FILE is -, read standard input.
SYNOPSIS¶
sum [-r ] [-s|--sysv] [-h|--help] [-V|--version] [file]
DESCRIPTION¶
Checksum and count the blocks in a file.
With no FILE, or when FILE is -, read standard input.
OPTIONS¶
- -r
- use the BSD sum algorithm, use 1K blocks (default)
- -s, --sysv
- use System V sum algorithm, use 512 bytes blocks
- -h, --help
- Print help
- -V, --version
- Print version
VERSION¶
v(uutils coreutils) 0.8.0
EXAMPLES¶
Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
sum path/to/file
Compute a checksum with System V-compatible algorithm and 512-byte blocks:
sum [-s|--sysv] path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
| 2026-05-17 |