1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 18:35:23 +02:00
This commit is contained in:
Managor 2025-07-01 16:49:43 +07:00 committed by GitHub
commit e2325b6cab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

25
pages/common/hexdump.md Normal file
View file

@ -0,0 +1,25 @@
# hexdump
> Display file contents in hexadecimal, decimal, octal, or ASCII.
> Useful for inspecting dump file, binary data, or debug output.
> More information: <https://manned.org/man/freebsd/hexdump.1>.
- Print the hexadecimal representation of a file, replacing duplicate lines by `*`:
`hexdump {{path/to/file}}`
- Display the input offset in hexadecimal and its ASCII representation in two columns:
`hexdump -C {{path/to/file}}`
- Display the hexadecimal representation of a file, but interpret only a specific number of bytes of the input:
`hexdump -C -n {{number_of_bytes}} {{path/to/file}}`
- Verbose - no suppression by `*` on duplicate lines:
`hexdump -v {{path/to/file}}`
- Format output using printf-like format string:
`hexdump -e '{{element_format .. end_format}}' {{path/to/file}}`