Skip to content
Advertisement

How to find what folder process can’t open

I have an application that is not functioning, because it can’t find or open the folder. But it does not print the folder path.

How i can find out what folders it tries to open or locate?

Probably folder does not exist, or has wrong permission. But to fix this i need to know what folder application is opening…

Advertisement

Answer

If the application is using the open or openat system calls under the hood you could use strace to look for any open system call. I would use the following command

strace -e trace=%file ${YOURAPP}

For more information you can checkout man strace

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement