objdump

objdump is a command-line program for displaying various information about object files on Unix-like operating systems.

It is part of the GNU Binutils for fine-grained control over executables and other binary data.

objdump uses the BFD library to read the contents of object files.

[citation needed] For example, This performs disassembly on the file «file.bin», with the assembly code shown in Intel syntax.

We then redirect it to grep, which searches the main function and displays 20 lines of its code.