xxd
FilesAdvanced In simulator In real LinuxMake a hex dump or reverse one
Name: xxd: a hex dump tool
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
xxd makes a hex dump: offsets on the left, hex bytes in the middle, printable characters on the right. -r turns a dump back into binary, which lets you "edit" binary files. It usually comes with vim.
Syntax
xxd [OPTION]... [FILE]Common options
| -l LEN | Stop after N bytes |
| -s [+-]SEEK | Start at byte SEEK (-SEEK counts from the end) |
| -c COLS | COLS bytes per line (16 by default) |
| -g BYTES | Group BYTES bytes together (2 by default) |
| -p | Plain hex output |
| -r | Reverse a hex dump to binary |
| -u | Upper-case hexadecimal |
| -b | Show bits (0 and 1) |
| -i | Output a C array |