zarkanian@sh.itjust.works to Linux@lemmy.ml · 10 hours agoAn amazing directory: /procsh.itjust.worksimagemessage-square51fedilinkarrow-up1562arrow-down12
arrow-up1560arrow-down1imageAn amazing directory: /procsh.itjust.workszarkanian@sh.itjust.works to Linux@lemmy.ml · 10 hours agomessage-square51fedilink
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