commands
strace — Summarize child system calls
Trace a child process and summarize calls. May expose sensitive data and alter timing. Use a fresh private workspace; No production workload is required.
Formal Syntax & Structure
linux syntaxlinux
strace -c COMMANDParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -c | option | Summary |
| COMMAND | operand | Authorized child command |
Return Value
exit status and output
With -c, prints a system-call summary (normally on stderr) for the traced command. It normally propagates the tracee's exit status; tracer setup failures are separate. Counts and timings depend on execution.
Working Example
Example Snippetlinux
strace -c /bin/true