Last active
August 29, 2015 14:26
-
-
Save jriguera/94e202be946043643ef2 to your computer and use it in GitHub Desktop.
strace examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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