3 ms·
My favorite trick to finding file which I know some app is using but I don't know where it is is: strace some_app 2>&1 | grep open And it will tell me what
by dvh 5y ago
My favorite trick to finding file which I know some app is using but I don't know where it is is:
strace some_app 2>&1 | grep open
And it will tell me what files is it opening. You will also see files it tried but failed to open, i.e. missing files.
- FreeFull 5y agoYou could also do `strace --trace=open some_app` or `strace --trace=%file some_app` to have the strace do the filtering by itself (the latter will match any syscall that takes a filename)