zarkanian@sh.itjust.works to Linux@lemmy.ml · 10 hours agoAn amazing directory: /procsh.itjust.worksimagemessage-square51linkfedilinkarrow-up1548arrow-down12
arrow-up1546arrow-down1imageAn amazing directory: /procsh.itjust.workszarkanian@sh.itjust.works to Linux@lemmy.ml · 10 hours agomessage-square51linkfedilink
minus-squarejaybone@lemmy.ziplinkfedilinkEnglisharrow-up5·5 hours agoI’m aware of /proc but usually use lsof to find open fd’s for a process. Is one better than the other?
minus-squareozymandias117@lemmy.worldlinkfedilinkEnglisharrow-up9·5 hours agolsof just reads from /proc and gives you formatted output https://github.com/lsof-org/lsof/blob/master/lib/dialects/linux/dproc.c#L297
I’m aware of /proc but usually use lsof to find open fd’s for a process.
Is one better than the other?
lsofjust reads from/procand gives you formatted outputhttps://github.com/lsof-org/lsof/blob/master/lib/dialects/linux/dproc.c#L297