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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.