Debugging File Access in Linux: Using strace and lsof
When debugging a program or understanding what it actually touches on your filesystem, you need to see which files it opens. Two tools do this well: strace traces system calls in real time, while lsof inspects a running process without the overhead. Using strace to capture file operations The simplest approach is to run strace…
