strace
$ strace [--pid pid] [--output output] [--exclude exclude] [--include include] [argument...]
Trace all syscalls and their result.
--help
: Display help message and exit--version
: Print version-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