hexdump

An ASCII, decimal, hexadecimal, octal dump. More information: https://manned.org/hexdump.

hexdump path/to/file

hexdump -C path/to/file

hexdump -C -nnumber_of_bytes path/to/file

hexdump --no-squeezing path/to/file