How to do it...

  1. First, we will check the executable. Run the following command:
$ file binary_name
  1. Now we will write a command to find strings within the binary. Run the following command:
$ strings binary_name
  1. We can hexdump a file by running the following command:
$ od -tx1 binary_name
  1. We can list the symbols in the binary by running the following command:
$ nm binary_name
  1. You can check which shared library it has been linked with by running the following command:
$ ldd binary_name

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.