cksum
Compute CRC32 checksum and byte count for files or standard input. Returns JSON with checksum per file for verifying data integrity during transmission.
Instructions
Compute CRC32 checksums and byte counts for files or stdin. Read-only, no side effects. Returns JSON with checksum and byte count per file. Use for fast data-transmission integrity verification. Not for cryptographic security — use 'sha256sum' or 'b2sum'. See also 'sha256sum', 'md5sum', 'sum'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write checksum size path lines without a JSON envelope. | |
| paths | No | Files to checksum, or '-' for stdin. Defaults to stdin. | |
| encoding | No | Output encoding (default: utf-8). Use 'auto' for BOM/autodetection. | utf-8 |
| show_encoding | No | Include encoding detection metadata in JSON result. | |
| encoding_errors | No | How to handle encoding errors (default: replace). | replace |
| encoding_profile | No | Locale-aware encoding fallback profile for auto-detection. |