tldr/pages/common/sum.md

14 lines
398 B
Markdown
Raw Normal View History

2016-02-05 16:04:37 +00:00
# sum
2016-02-05 17:05:30 +00:00
> Compute checksums and the number of blocks for a file.
> A predecessor to the more modern `cksum`.
2021-03-30 14:45:07 +01:00
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sum-invocation.html>.
2016-02-05 16:04:37 +00:00
- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
`sum {{file}}`
2016-02-07 13:31:01 +00:00
- Compute a checksum with System V-compatible algorithm and 512-byte blocks:
2016-02-05 16:04:37 +00:00
`sum --sysv {{file}}`