EXTRACE(1)

πŸ“¦
version 0.9 Β· 2 versions
, in nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay bestie, welcome to extrace(1) from the General Commands Manual β€” the iconic little tool that traces exec() calls system-wide. yes, literally all program executions on the system. main character energy fr fr. πŸ’…

✨ SYNOPSIS ✨

extrace [-deflqQtu] [-o file] [-p pid | cmd ...]

πŸ’– DESCRIPTION πŸ’–

extrace traces all program executions occurring on a system. that’s the whole vibe check: every execution, tracked. πŸ¦‹

the options are as follows, bestie:

  • -d β€” print the current working directory of the new process. cute little context clue.
  • -e β€” print environment of process, or - if unreadable. if it’s unreadable, it literally says -, no cap.
  • -f β€” generate flat output without indentation. by default, the line indentation reflects the process hierarchy. so -f is giving β€œno nesting drama.” ✨
  • -l β€” resolve full path of the executable. by default, argv[0] is shown. so -l is the β€œgive me the full government name” option.
  • -q β€” suppress printing of exec(3) arguments. shhh 🀫
  • -Q β€” suppress printing of runtime errors. also shhh, but for errors.
  • -t β€” also display process exit status and duration. like a little report card for the process.
  • -u β€” also display the user running the process. identity check πŸ‘‘
  • -o file β€” redirect trace output to file. take the receipts elsewhere.
  • -p pid β€” only trace exec(3) calls descendant of pid. so you’re zooming in on that one process family tree.
  • cmd ... β€” run cmd ... and only trace descendants of this command. by default, all exec(3) calls are traced globally. so without this, it’s everyone, everywhere, all at once. 😭

🫢 EXIT STATUS 🫢

the extrace utility exits 0 on success, and >0 if an error occurs. simple. clean. slay.

😭 ERRORS 😭

check these prerequisites if you see this error:

binding sk_nl error: Operation not permitted

extrace requires special permissions to run, either root or the Linux CAP_NET_ADMIN capability.

extrace only works on Linux kernels with the kernel options

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
bestie, if you’re seeing that error, this is your sign to check permissions and kernel vibes before spiraling. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

fatrace(1), ps(1), pwait(1), strace(1)

πŸ‘‘ AUTHORS πŸ‘‘

Leah Neukirchen <leah@vuxu.org>

May contain traces of code from Guillaume Thouvenin, Matt Helsley, and Sebastian Krahmer.

πŸ’€ BUGS πŸ’€

While process tracing is exact, looking up all information is inherently sensitive to race conditions. In doubt, you can only trust the PID was written correctly. ngl, that’s the honest tea. πŸ“

πŸŽ€ LICENSE πŸŽ€

extrace is licensed under the terms of the GPLv2.


mwah πŸ’‹ β€” source/version: Debian manual page Β· date: June 19, 2018. now go trace something iconic ✨