strace
$ strace [--pid pid] [--output output] [--exclude exclude] [--include include] [argument...]
Trace all syscalls and their result.
-p pid
, --pid pid
: Trace the given PID-o output
, --output output
: Filename to write output to-e exclude
, --exclude exclude
: Comma-delimited syscalls to exclude-i include
, --include include
: Comma-delimited syscalls to includeargument
: Arguments to exec