@Estinos@lemm.ee
link
fedilink
English
9
edit-2
1Y

Obligatory mention for those who don’t know yet : you can find what files a program use by using strace <command> (provided strace is installed). It actually logs all syscalls made by the program, so there will be a lot of noise, but in there you will find the access() and open() calls.

Additionally, if you want to strace programs that already are running in a convenient interface, htop has strace support (this is less useful to find configuration files, as those are usually read at the start of the program, but if you can trigger a save to the file, it will appear here).

Wow! I did not know about htop’s built in support. That’s awesome to know about, thanks!

@Estinos@lemm.ee
link
fedilink
English
31Y

Yeah, it’s easy to miss. :) I think it’s been there for something like about 5 years? (don’t quote me on that). But it only appears if strace is available, and even then it’s a bit hidden in the interface. I discovered it the way I learn new features in vim : by mistyping.

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 2 users / day
  • 2 users / week
  • 8 users / month
  • 98 users / 6 months
  • 1 subscriber
  • 302 Posts
  • 2.15K Comments
  • Modlog