zarkanian@sh.itjust.works to Linux@lemmy.ml · 12 days agoAn amazing directory: /proclemmy.imagisphe.reimagemessage-square78linkfedilinkarrow-up1968arrow-down14
arrow-up1964arrow-down1imageAn amazing directory: /proclemmy.imagisphe.rezarkanian@sh.itjust.works to Linux@lemmy.ml · 12 days agomessage-square78linkfedilink
minus-squarejaybone@lemmy.ziplinkfedilinkEnglisharrow-up8·12 days 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-up15·12 days 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