snippetbashTip
sum — Compute checksums and the number of blocks for a file. A predecessor to the more modern `cksum`. Mor
Viewed 0 times
thecommandcomputesumandchecksumsclinumber
Problem
How to use the
sum command: Compute checksums and the number of blocks for a file. A predecessor to the more modern cksum. More information: <https://www.gnu.org/software/coreutils/manual/html_node/sum-invocation.html>.Solution
sum — Compute checksums and the number of blocks for a file. A predecessor to the more modern cksum. More information: <https://www.gnu.org/software/coreutils/manual/html_node/sum-invocation.html>.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}}Code Snippets
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}}Context
tldr-pages: common/sum
Revisions (0)
No revisions yet.