sum
Compute legacy BSD-style 16-bit checksums and block counts for files or stdin, returning JSON with the checksum and block count.
Instructions
Compute legacy BSD-style 16-bit checksums and block counts for files or stdin. Read-only, no side effects. Returns JSON with checksum and block count. Use for compatibility with legacy BSD systems. Not for data integrity — CRC32 ('cksum') and cryptographic hashes ('sha256sum') are far more reliable. See also 'cksum', 'sha256sum'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_size | No | Block size used for reported block counts. | |
| paths | No | Files to checksum, or '-' for stdin. Defaults to stdin. | |
| raw | No | Write checksum blocks path lines without a JSON envelope. |