💾 Archived View for freeshell.de › tldr › lsof.gmi captured on 2023-09-28 at 16:39:45. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Lists open files and the corresponding processes.
Note: Root privileges (or sudo) is required to list files opened by others.
lsof {path/to/file}
lsof -i :{port}
lsof -t {path/to/file}
lsof -u {username}
lsof -c {process_or_command_name}
lsof -p {PID}
lsof +D {path/to/directory}
lsof -i6TCP:{port} -sTCP:LISTEN -n -P
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).