amitmah amitmah - 1 year ago 171
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download