XXD
its used for converting binary data into a hex representation and vice versa. The xxd tool is primarily used for examining binary files, creating binary patches, and manipulating binary data.
Basic Usage
Hexadecimal to binary conversion:
xxd -r hexdump.txt binary_output.bin
Binary to hexadecimal conversion:
xxd binary_input.bin hexdump.txt
Specifying input and output formats:
xxd -g 4 binary_input.bin hexdump.txt
Skipping a specific number of bytes:
xxd -s 16 binary_input.bin hexdump.txt
Limiting the number of bytes to display:
xxd -l 64 binary_input.bin hexdump.txt
XXD provides several other options for controlling the format and output, such as:
-c
(or--cols
) to specify the number of bytes per line-e
(or--endian
) to set the endianness-v
(or--version
) to display the version information
How to extract files using XXD


Last updated