xxd <infile> <outfile>

Make a hexdump or do the reverse

Arguments

NameDescription
infilefilepaths
outfilefilepaths

Options

NameDescription
-help, -hShow help for xxd
-autoskip, -aToggle autoskip: A single '*' replaces nul-lines. Default off
-bits, -bSwitch to bits (binary digits) dump, rather than hexdump
-cols, -c <cols>Format <cols> octets per line. Default 16
-capitalize, -CCapitalize variable names in C include file style, when using -i
-EBCDIC, -EChange the character encoding in the righthand column from ASCII to EBCDIC
-eSwitch to little-endian hexdump
-groupsize, -g <bytes>Separate the output of every <bytes> bytes
-include, -iOutput in C include file style
-len, -l <len>Stop after writing <len> octets
-name, -n <name>Override the variable name output when -i is used
-o <offset>Add <offset> to the displayed file position
-postscript, -plain, -ps, -pOutput in postscript continuous hexdump style
-revert, -rReverse operation: convert (or patch) hexdump into binary
-seek <offset>When used after -r: revert with <offset> added to file positions found in hexdump
-uUse upper case hex letters. Default is lower case
-version, -vShow version string