Dump files in octal and other formats.

Synopsis

od [OPTION]... [FILE]...

Description

Writes an unambiguous representation of each FILE (octal, hex, character, etc.) to standard output. With no FILE, or when FILE is -, reads standard input.

Options

-A x Use hexadecimal for the offset column.

-t x1z Show hex bytes with a trailing printable-character interpretation (like -c).

Examples

$ od -c file.bin

Dump a file showing each byte as a character.

$ printf 'AB' | od -A x -t x1z

Dump raw bytes with hex offsets and printable characters.

Notes

A useful subset of GNU od's format options is supported; check specific -t/-A combinations with od --help if a particular format code errors out.

See Also

xxd, strings, hexdump