xxd
Create a hexadecimal representation (hexdump) from a binary file, or vice-versa. See also:
hexyl,od,hexdump. More information: https://manned.org/xxd.
- Generate a hexdump from a binary file and display the output:
xxd
- Generate a hexdump from a binary file and save it as a text file:
xxd
- Display a more compact output, replacing consecutive zeros (if any) with a star:
xxd
- Display the output with 10 columns of one octet (byte) each:
xxd 10
- Display output only up to a length of 32 bytes:
xxd 32
- Display the output in plain mode, without any gaps between the columns:
xxd
- Revert a plaintext hexdump back into binary, and save it as a binary file:
xxd
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
