In this cheat sheet, I will list some commonly used lsof commands.
lsof /path/to/file [ /path/to/other/file ... ]
lsof -u [^] [ ,,... ]
Generally '^' inverts the selection.
lsof +D </path/to/directory>
lsof -c
lsof -p
In this cheat sheet, I will list some commonly used lsof commands.
lsof /path/to/file [ /path/to/other/file ... ]
lsof -u [^] [ ,,... ]
Generally '^' inverts the selection.
lsof +D </path/to/directory>
lsof -c
lsof -p