strace
Troubleshooting tool for tracing system calls. See also:
fatrace. More information: https://manned.org/strace.
- Start tracing a specific process by its PID:
sudo strace
- Trace a process and filter output by system call [e]xpression:
sudo strace -e
- Count time, calls, and errors for each system call and report a summary on program exit:
sudo strace
- Show the time spent in every system call and specify the maximum string size to print:
sudo strace
- Start tracing a program by executing it:
strace
- Start tracing file operations of a program:
strace -e trace=file
- Start tracing network operations of a program as well as all its forked and child processes, saving the output to a file:
strace -e trace=network
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
