4 ms·
I often use it to see what configuration files the thing reads, it is much more reliable than documentation.
by hawski 3y ago
I often use it to see what configuration files the thing reads, it is much more reliable than documentation.
- bboozzoo 3y agoSince you almost always need to open a file in order to do anything useful `strace -vf -e openat` helped solve a lot of issues from simple configuration file lookup to ld.so library loading problems.
- thequux 3y agoIt is often useful to also watch for calls to the stat family of syscalls; some applications stat files that they wish to open rather than depending on the return code from open, so just looking for open will miss files that don't exist.
- agumonkey 3y agosame, and I'm often surprised how many files are touched / read, and also how many times (trying to load local configs from dozens of places).. some unix practices seems very inefficient