strace¶
See why a program can't seem to access a file¶
trace the system calls made by a process (and its children)¶
intercept stdout/stderr of another process or disowned process¶
strace -e write=1,2 -p $PID 2>&1 | sed -un "/^ |/p" | sed -ue "s/^.\{9\}\(.\{50\}\).\+/\1/g" -e 's/ //g' | xxd -r -p
Strace all signals processes based on a name ( The processes already started... ) with bash built-in¶
Find files that were modified by a given command¶
List files accessed by a command¶
strace -ff -e trace=file my_command 2>&1 | perl -ne 's/^[^"]+"(([^\\"]|\\[\\"nt])*)".*/$1/ && print'
intercept stdout/stderr of another process¶
intercept stdout/stderr of another process¶
Locate config files of the program¶
strace to find out what files a process executes¶
intercept stdout/stderr of another process¶
strace -ff -e write=1,2 -s 1024 -p PID 2>&1 | grep "^ |" | cut -c11-60 | sed -e 's/ //g' | xxd -r -p
Advanced python tracing¶
strace a program¶
easily strace all your apache processes¶
See why a program can't seem to access a file¶
trace the system calls made by a process (and its children)¶
intercept stdout/stderr of another process or disowned process¶
strace -e write=1,2 -p $PID 2>&1 | sed -un "/^ |/p" | sed -ue "s/^.\{9\}\(.\{50\}\).\+/\1/g" -e 's/ //g' | xxd -r -p
Strace all signals processes based on a name ( The processes already started... ) with bash built-in¶
Find files that were modified by a given command¶
List files accessed by a command¶
strace -ff -e trace=file my_command 2>&1 | perl -ne 's/^[^"]+"(([^\\"]|\\[\\"nt])*)".*/$1/ && print'
intercept stdout/stderr of another process¶
Locate config files of the program¶
strace to find out what files a process executes¶
intercept stdout/stderr of another process¶
strace -ff -e write=1,2 -s 1024 -p PID 2>&1 | grep "^ |" | cut -c11-60 | sed -e 's/ //g' | xxd -r -p
Advanced python tracing¶
Last update: August 10, 2022
Created: August 10, 2022
Created: August 10, 2022