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
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago
9 months ago