ss: show socket summary
Print a socket summary grouped by state
ss -s
- tool
- lsof19 commands
More lsof commands
-
ss -tnp dst :443Show connections that go to port 443
-
lsof -nP -i :<port>Show which process uses a port; -nP skips DNS and service name lookups, so it is faster
-
lsof -nP -iTCP -sTCP:LISTENList every listening TCP socket with its PID, without name lookups; the newer way is ss -ltnp
-
lsof +L1Find deleted files that are still open and use disk space, the reason why df says the disk is full and du does not
-
lsof /mnt/<name>Show the processes that cause the "device busy" error on umount; pass the mount point path