Skip to content

Instantly share code, notes, and snippets.

@jriguera
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jriguera/94e202be946043643ef2 to your computer and use it in GitHub Desktop.
Save jriguera/94e202be946043643ef2 to your computer and use it in GitHub Desktop.
strace examples
# Examples
# Debug syscalls for a daemon
strace -e poll,select,connect,recvfrom,sendto nc www.news.com 80
# Attach to process and sent to output.txt
strace -c -p 11084 -o output.txt
# Check permissions
strace -e open,read,access ls 2>&1 | grep your-filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment