Linux "hexdump" Command Line Options and Examples
ASCII, decimal, hexadecimal, octal dump

The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user speci‐ fied format. The options are as follows: -b One-byte octal display. Display the input offset in hexadecimal, followed by sixteen space-separated, three column, zero- filled, bytes of input data, in octal, per line.


Usage:

hexdump [-bcCdovx] [-e format_string] [-f format_file] [-n length] [-s offset] file ...
   hd [-bcdovx] [-e format_string] [-f format_file] [-n length] [-s offset] file ...




Command Line Options:

-e
Specify a format string to be used for displaying data.
hexdump -e ...
-f
Specify a file that contains one or more newline separated format strings. Empty lines and lines whose first non-blank charac‐ter is a hash mark (#) are ignored.
hexdump -f ...
-n
Interpret only length bytes of input.
hexdump -n ...
-s
Skip offset bytes from the beginning of the input. By default, offset is interpreted as a decimal number. With a leading 0xor 0X, offset is interpreted as a hexadecimal number, otherwise, with a leading 0, offset is interpreted as an octal number.Appending the character b, k, or m to offset causes it to be interpreted as a multiple of 512, 1024, or 1048576, respectively.
hexdump -s ...