>_ linuxcommand.dev
Startseite lsof
Monitoring

lsof

List open files and sockets

Ubuntu CentOS Debian SUSE Fedora RHEL macOS
Verified: 2026-03-04
Syntax
$lsof [options] [names]
Optionen
-i
-p
-u
-c
Examples
$lsof
$lsof -i :80
$lsof -p PID
$lsof -u username
Typical use cases
?
Standard usage
lsof --help
Note Lists all open files and network sockets.
Export