Amit Mahajan
Amit Mahajan

Reputation: 915

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.

Upvotes: 3

Views: 3453

Answers (1)

Petr Skocik
Petr Skocik

Reputation: 60097

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

Upvotes: 5

Related Questions