amitmah amitmah - 3 months ago 11
Linux Question

Decompile Linux shell commands

This question is reverse of Linux to define Custom Shell Command?

I know we can read the documentation about most of the commands using man/info/help/?.
Is there any way to "decompile" any shell command and know how it executes.

Answer

Call it with strace to see how it interacts with the kernel. If you really feel like reading assembly, there's objdump -d.