In shell, how can I read the bytes of a binary file I have, and print the output as hexadecimal numbers?
Shell: How to read the bytes of a binary file and print as hexadecimal?
shell;text processing;binary
Use hexdump(1)$ hexdump -x /usr/bin/hexdump 0000000    feca    beba    0000    0300    0001    0700    0080    03000000010    0000    0010    0000    5080    0000    0c00    0000    07000000020    0000    0300    0000    00a0    0000    b06f    0000    0c000000030    0000    1200    0000    0a00    0100    0010    0000    107c0000040    0000    0c00    0000    0000    0000    0000    0000    00000000050    0000    0000    0000    0000    0000    0000    0000    0000...