od
Dump binary file contents as formatted bytes in hexadecimal, octal, or decimal. Inspect raw byte sequences without interpretation.
Instructions
Dump input bytes as structured rows in hexadecimal, octal, or decimal format. Read-only, no side effects. Returns JSON with formatted dump by default; use --raw for traditional octal display. Use to inspect raw binary content. Not for plain text viewing — use 'cat'. See also 'cat'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes_per_line | No | Bytes per output row. | |
| format | No | Byte rendering format. | hex |
| max_bytes | No | Maximum bytes to dump. | |
| offset | No | Start offset in bytes. | |
| paths | No | Files to dump, or '-' for stdin. Defaults to stdin. | |
| raw | No | Write dump rows without a JSON envelope. |