lsof
Verified for current stable LTS
Lsof Commands
Lsof command syntax with verified terminal examples.
Commands
8 commands for Lsof
lsof Operations
Lsof Command: Find Listening Process On Ipv6 Tcp Port
lsof -i6TCP:<port> -sTCP:LISTEN -n -P lsof Operations
Lsof Command: Find Process Opened Internet Port
lsof -i :<port> lsof Operations
Lsof Command: Find Processes With File Open
lsof <path/to/file> lsof Operations
Lsof Command: List Files Opened By Command
lsof -c <process_or_command_name> lsof Operations
Lsof Command: List Files Opened By Specific Process
lsof -p <PID> lsof Operations
Lsof Command: List Files Opened By User
lsof -u <username> lsof Operations
Lsof Command: List Open Files In Directory
lsof +D <path/to/directory> lsof Operations
Lsof Command: Output Process Id Only
lsof -t <path/to/file> Suggest a Lsof Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Lsof workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.