Quantcast
Channel: Linux and Mac Hacks
Viewing all articles
Browse latest Browse all 39

How to see what a program is calling or files it is using?

$
0
0
Sometimes it is useful to see what system calls a compiled program is making. strace is a great utility to use for this, here is an example:
strace -f -s 500 -o /tmp/strace.output dig somedomain.com

The command above will run 'dig somedomain.com' and put all the system calls into the output file /tmp/strace.output.

Viewing all articles
Browse latest Browse all 39

Latest Images

Trending Articles



Latest Images