Attach to running process strace

Trace syscalls of an already-running process by PID

strace -p $(pgrep nginx | head -1) -o /tmp/nginx.trace
more strace all 13 commands →