Show pagesourceBack to top Share via Share via... Twitter LinkedIn Telegram Yammer RedditRecent ChangesSend via e-MailPrintPermalink × Table of Contents Which files get accessed by the program? Which processes get started/paused/terminated by the program? protocol syscalls of already started programs strace (Stack Trace) Important parameters: -o filename output to file filename -f check forks -tt protocol time (microseconds) -p pid only protocol system calls with PID pid -e limit output, see below Which files get accessed by the program? strace -e trace=open -o logfile.log ./mycommand -mycommandparameter Which processes get started/paused/terminated by the program? strace -e trace=process -o logfile.log ./mycommand -mycommandparameter protocol syscalls of already started programs ps aux | grep mycommand | grep -v grep mycommand strace -o logfile.log -p 123 # if there's only one program running with that name: strace -o logfile.log -p `pidof mycommand` Last modified: 2019-12-20 14:21