The pdf command is able to disassemble a function in radare2. Is there a way to disassemble all functions of a binary in a single radare2 command ?

1 Answer 1


You can iterate over functions (or anything else) using @@ command modifier.

In your case, after you analyze the binary to get functions, you can run:

pdf @@ fcn*

This command will print the disassembly of every function iterating over function's flags starting with fcn. You can use any other wildcard you want.

You might also want to check out pdr (pdr.) command, which prints disassembly recursively across the function graph (form current basic block)

  • There could be some functions which don't have "fcn" in their names. Commented Apr 6, 2021 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.