When using cat to read a binary file (such as an executable), you often encounter a jumble of unreadable characters. To read binary files, you can use od(octal dump). The basic usage is od [OPTIONS] FILENAME.
Here are some common options for the od command:
$ od -tx /bin/reset ←Display the binary file "/bin/reset" in hexadecimal format 0000000 464c457f 00010102 00000000 00000000 0000020 003e0002 00000001 0040225e 00000000 0000040 00000040 00000000 000046e8 00000000 |