commands
od — inspect raw bytes
Display data in selected representation. -An omits addresses, -tx1 shows single-byte hexadecimal units. Inspect bytes rather than printing unknown binary data directly. Example assumes a fresh text-streams lab fixture.
Formal Syntax & Structure
linux syntaxlinux
od [OPTION]... [FILE]...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -A | option | Address radix |
| -t | option | Output representation |
| FILE | operand | Input file |
Return Value
exit status and output
GNU od prints the selected byte representation and returns nonzero on read/write errors. Successful output describes bytes rather than interpreting whether the source is valid text.
Working Example
Example Snippetlinux
od -An -tx1 crlf.txt