đŸ Archived View for 7irb.tk âș computer âș 210807.gmi captured on 2022-04-29 at 11:21:24. Gemini links have been rewritten to link to archived content
âŹ ïž Previous capture (2021-11-30)
-=-=-=-=-=-=-
Surprisingly, the correct command for this is not `netstat` but `lsof`, meaning "list of open files". The reason for this is that, on unix-based systems, every network connection is treated as a file.
The command in need is `sudo lsof -i -P`. This will display the actual NAME of apps (not PID) that are using the network interface.
In `lsof`'s man page, it is stated that the `-i` flag "selects the listing of files any of whose Internet address matches the address specified in i. If no address is specified, this option selects the listing of all Internet and x.25 (HP-UX) network files". The `-P` flag just inhibits the conversion of port numbers to port names for network files.