tldr/pages/common/sum.md

13 lines
299 B
Markdown
Raw Normal View History

2016-02-05 19:04:37 +03:00
# sum
2016-02-05 20:05:30 +03:00
> Compute checksums and the number of blocks for a file.
> A predecessor to the more modern `cksum`.
2016-02-05 19:04:37 +03:00
- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
`sum {{file}}`
2016-02-07 16:31:01 +03:00
- Compute a checksum with System V-compatible algorithm and 512-byte blocks:
2016-02-05 19:04:37 +03:00
`sum --sysv {{file}}`