2016-02-05 11:04:37 -05:00
|
|
|
# sum
|
|
|
|
|
2016-02-05 12:05:30 -05:00
|
|
|
> Compute checksums and the number of blocks for a file.
|
|
|
|
> A predecessor to the more modern `cksum`.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sum-invocation.html>.
|
2016-02-05 11:04:37 -05:00
|
|
|
|
|
|
|
- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`sum {{path/to/file}}`
|
2016-02-05 11:04:37 -05:00
|
|
|
|
2016-02-07 14:31:01 +01:00
|
|
|
- Compute a checksum with System V-compatible algorithm and 512-byte blocks:
|
2016-02-05 11:04:37 -05:00
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`sum {{[-s|--sysv]}} {{path/to/file}}`
|