Another useful command I heard from someone is `lsof -n | grep -i del`. That shows what I think might be similar to the +L1 you mention at the end — it detects files that have been deleted but still exist because they’re open. Something it’s useful for is, for example, after upgrading a program or library, finding all running copies of the old program or programs using the old library, so you can go and kill/restart them.
Hm, at the start of the article you mentioned that by default options are OR’d unless you specify -a, but in the advanced sections you have a couple commands that use multiple options without -a, where it looks like you’re looking for AND.
Man page URL comes up 404
A great overview, I never knew lsof could be used to examine network connections. Thank you!
Another useful command I heard from someone is `lsof -n | grep -i del`. That shows what I think might be similar to the +L1 you mention at the end — it detects files that have been deleted but still exist because they’re open. Something it’s useful for is, for example, after upgrading a program or library, finding all running copies of the old program or programs using the old library, so you can go and kill/restart them.
Hm, at the start of the article you mentioned that by default options are OR’d unless you specify -a, but in the advanced sections you have a couple commands that use multiple options without -a, where it looks like you’re looking for AND.