od [-A address_base] [-j skip] [-N count] [-t type_string] [-Cbcdosvx] [file...]
Description
The od utility writes the contents of the specified files to standard output in a user-specified format. If the file parameter is not given, the od command reads standard input. The format is specified by the -t flag. If no format type is specified, -t oS is the default.
Options
In the case of n, the offset base is not displayed. If -A is not specified, -A o is the default.
The type specifications of a and c may give unexpected results since they depend on the CCSID on the data. The a type specifier displays non-printable characters as named characters. The c type specifier displays non-printable characters as three digit octal numbers.
The type specifications of d, o, u and x can also be followed by 1, 2, 4, C, S, I or L. These specify the number of bytes to be transformed by each instance of the output type. The values C, S, I and L correspond to char, short, int and long.
The type specification of f can be followed by by 4, 8, F, D or L. These specify the number of bytes to be transformed by each instance of the output type. The values F, D and L correspond to float, double, and long double. If -t is not specified, the default is -t oS.
Operands
Each file is a path name of an object to be written to standard output. If no file operands are specified, standard input will be used.
Exit Status
Related information
Examples
od -tx output.txt
od -N50 output.txt
od -j100 output.txt
od -tx1 -tc output.txt