JAEN

Linux

strace

SafeTrace system calls

strace -p <pid>

Traces syscalls — the trump card for 'which file open failed' style mysteries.

Examples

  • strace -e trace=open,openat -f ./app 2>&1 | grep ENOENTFind missing files

Syntax

strace [-p pid] [-e trace=set] <cmd>

Before you run it

Slows the target; keep it brief in prod.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store