strace Command Examples

Troubleshooting tool for tracing system calls. More information: https://manned.org/strace.

strace {{[-p|--attach]}} {{pid}}

strace {{[-p|--attach]}} {{pid}} -e {{system_call,system_call2,...}}

strace {{[-p|--attach]}} {{pid}} {{[-c|--summary-only]}}

strace {{[-p|--attach]}} {{pid}} {{[-T|--syscall-times]}} {{[-s|--string-limit]}} {{32}}

strace {{program}}

strace -e trace=file {{program}}

strace {{[-f|--follow-forks]}} -e trace=network {{[-o|--output]}} {{trace.txt}} {{program}}