DaGammla@lemmy.ml to linuxmemes@lemmy.worldEnglish · 1 day agoWho is using my file?lemmy.mlimagemessage-square40linkfedilinkarrow-up1350arrow-down112
arrow-up1338arrow-down1imageWho is using my file?lemmy.mlDaGammla@lemmy.ml to linuxmemes@lemmy.worldEnglish · 1 day agomessage-square40linkfedilink
minus-squareAnafabula@discuss.tchncs.delinkfedilinkarrow-up24·1 day ago Who is using my file? lsof path/to/file
minus-squaretal@lemmy.todaylinkfedilinkEnglisharrow-up6·1 day agoYou almost always want to pair lsof with -n, as by default, it (slowly) lists a bunch of things that require name resolution. $ time lsof >/dev/null real 2m12.352s user 0m0.499s sys 0m1.217s $ time lsof -n >/dev/null real 0m1.600s user 0m0.523s sys 0m1.029s $
You almost always want to pair
lsofwith-n, as by default, it (slowly) lists a bunch of things that require name resolution.