HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

extrace — Trace exec() calls. More information: <https://github.com/leahneukirchen/extrace>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
execcommandtraceextracecliinformationcallsmore
linux

Problem

How to use the extrace command: Trace exec() calls. More information: <https://github.com/leahneukirchen/extrace>.

Solution

extrace — Trace exec() calls. More information: <https://github.com/leahneukirchen/extrace>.

Trace all program executions occurring on the system:
sudo extrace


Run a command and only trace descendants of this command:
sudo extrace {{command}}


Print the current working [d]irectory of each process:
sudo extrace -d


Resolve the full path of each executable:
sudo extrace -l


Display the [u]ser running each process:
sudo extrace -u

Code Snippets

Trace all program executions occurring on the system

sudo extrace

Run a command and only trace descendants of this command

sudo extrace {{command}}

Print the current working [d]irectory of each process

sudo extrace -d

Resolve the full path of each executable

sudo extrace -l

Display the [u]ser running each process

sudo extrace -u

Context

tldr-pages: linux/extrace

Revisions (0)

No revisions yet.