Skip to content

Instantly share code, notes, and snippets.

@yfe404
Created January 2, 2014 20:00
Show Gist options
  • Save yfe404/8225653 to your computer and use it in GitHub Desktop.
Save yfe404/8225653 to your computer and use it in GitHub Desktop.
Print the list of the files opened by a program during its execution Usage : straceopen <program [args]>
#!/bin/sh
strace $* 2>&1 | grep "open" | cut -d "(" -f 2 | cut -d ")" -f 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment