Skip to content

Instantly share code, notes, and snippets.

@dominiksalvet
Created April 1, 2020 19:06
Show Gist options
  • Select an option

  • Save dominiksalvet/1febd9ba78e8e2bb294438ebce78aa55 to your computer and use it in GitHub Desktop.

Select an option

Save dominiksalvet/1febd9ba78e8e2bb294438ebce78aa55 to your computer and use it in GitHub Desktop.
Monitor system calls of a process on Linux
#!/bin/sh
# trace system calls of process and its forks
strace -f -p "$1" 2>&1 # PID should be in $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment