See what files are opened from a command
$ strace -o <command>.trace -e trace=file <command>
$ grep ^open <command>.trace | grep -v '= -1' | cut -d\" -f2 | sort -u
Written by zunda
Related protips
1 Response
Thanks! lsof is good at having a snap shot while strace is good to create a complete list :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#