od

Dumps the contents of a file

od [options] [file-list]

The od (octal dump) utility dumps the contents of a file, which is useful for viewing executable (object) files and text files with embedded nonprinting characters.

This utility takes its input from the file you specify on the command line or from standard input.

Arguments

The file-list includes the pathnames of the files that od displays. When you do not specify a file-list, od reads from standard input.

Options

--address-radix=base

-A base Specifies the base used when displaying the offsets shown for positions in the file. By default, offsets are given in octal. The values for base are d (decimal), o (octal), x (hexadecimal), and n (no offsets printed).

--format=type

-t type Determines ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.