Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I know lsof, which shows me the files opened by a running process, but if I launch a command, like calendar, that terminates immediately.
How can I see what config files are read?
I would use strace -efile calendar for this. The resulting output is a little hard to read, but it shows every file-related action, including failed attempts at opening files and uses of 'stat' to see if a file exists.
strace -efile calendar
I use find -mmin -2 or find -amin -2 to see which files were concerned by a command.
find -mmin -2
find -amin -2
Required, but never shown