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.

hexdump {{path/to/file}}

hexdump -C {{path/to/file}}

hexdump -C -n {{number_of_bytes}} {{path/to/file}}

hexdump -v {{path/to/file}}

hexdump -e '{{element_format .. end_format}}' {{path/to/file}}