4 ms·
strace tip of the day: you don't need lsof, strace can keep track of open fds quite well, just use the -y flag. -y --decode-fds --decode-f
by Aissen 5y ago
strace tip of the day: you don't need lsof, strace can keep track of open fds quite well, just use the -y flag.
-y
--decode-fds
--decode-fds=path
Print paths associated with file descriptor arguments.
-yy
--decode-fds=all
Print all available information associated with file
descriptors: protocol-specific information associated with
socket file descriptors, block/character device number
associated with device file descriptors, and PIDs
associated with pidfd file descriptors.
- loeg 5y agoThat's a great tip, thanks.