How To Know How A Command Is Executed In Linux

Written by admin. Posted in Linux

Tagged: , ,

Published on February 10, 2012 with No Comments">No Comments

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare

Here’s how to know how a command is executed in Linux:

1. Issue the following command at the terminal -

strace -c <absolute path to the command>

for example, to know how ‘man’ command is executed, issue the following command at the terminal -

strace -c /usr/bin/man

The output will show you the system calls during the execution of the command. If you want to view more detailed output, use the command without the ‘-c’ option.

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare

No comments

Comments for How To Know How A Command Is Executed In Linux are now closed.