See what files are being opened by a command

strace -f <command> 2>&1 | grep ^open