I often use strace to see which files a program uses and often even more
interesting: wich (non-existing) files it fails to open. With the flag -y
strace will
decode file descriptors, so you see the path of the files and with
-e %file
strace will only print syscalls that operate on a file:
open
, stat
, chmod
, unlink
, … Please note that this does not include syscalls
operating with a file descriptor like read or write – you can add them:
-e %file,read,write
but keep in mind there are multiple syscalls capable to
reading from or writing to file descriptors.
en shorterhacks strace
Shorter Hacksconsists of tips and tricks for Linux nerds. Flags, hacks, and features of everyday tools that you might not know already, but that will enrich your life. I currently have a list of around 40 hacks I collected and plan to publish them roughly weekly. In order for this series to continue, please send me your best trick(s). The focus is not on fancy new tools or extensive rc-file content, but little known features in software most people already use. Send them to .