Linux "od" Command Line Options and Examples
dump files in octal and other formats

Write an unambiguous representation, octal bytes by default, of FILE to standard output. With more than one FILE argument, concatenate them in the listed order to form the input. With no FILE, or when FILE is -, read standard input.


Usage:

od [OPTION]... [FILE]...
    od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
    od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]




Command Line Options:

-A
output format for file offsets; RADIX is one of [doxn], for Decimal, Octal, Hex or None
od -A ...
--endian
swap input bytes according the specified order
od --endian ...
-j
skip BYTES input bytes first
od -j ...
-N
limit dump to BYTES input bytes
od -N ...
-S
output strings of at least BYTES graphic chars; 3 is implied when BYTES is not specified
od -S ...
-t
select output format or formats
od -t ...
-v
do not use * to mark line suppression
od -v ...
-w[BYTES]
output BYTES bytes per output line; 32 is implied when BYTES is not specified
od -w[BYTES] ...
--traditional
accept arguments in third form above
od --traditional ...
--help
display this help and exit
od --help ...
--version
output version information and exitTraditional format specifications may be intermixed; they accumulate:
od --version ...
-a
select named characters ignoring high-order bit
od -a ...
-b
select octal bytes
od -b ...
-c
select printable characters or backslash escapes
od -c ...
-d
select unsigned decimal 2-byte units
od -d ...
-i
select decimal ints
od -i ...
-l
select decimal longs
od -l ...
-o
select octal 2-byte units
od -o ...
-s
select decimal 2-byte units
od -s ...
-x
TYPE is made up of one or more of these specifications:a named character, ignoring high-order bitc printable character or backslash escaped[SIZE]signed decimal, SIZE bytes per integerf[SIZE]floating point, SIZE bytes per floato[SIZE]octal, SIZE bytes per integeru[SIZE]unsigned decimal, SIZE bytes per integerx[SIZE]hexadecimal, SIZE bytes per integerSIZE is a number. For TYPE in [doux], SIZE may also be C for sizeof(char), S for sizeof(short), I forsizeof(int) or L for sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D for sizeof(double)or L for sizeof(long double).Adding a z suffix to any type displays printable characters at the end of each output line.BYTES is hex with 0x or 0X prefix, and may have a multiplier suffix:b 512KB 1000K 1024MB 1000*1000M 1024*1024and so on for G, T, P, E, Z, Y.EXAMPLESod -A x -t x1z -vDisplay hexdump format outputod -A o -t oS -w16The default output format used by odAUTHORWritten by Jim Meyering.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report od translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
od -x ...