How do you get lsof to produce numeric port information instead of attempting to resolve the port to service name?
lsof
For example, I want TCP *:http (LIS
TCP *:http (LIS
Run lsof -P. According to man lsof, -P inhibits the conversion of port numbers to port names for network files. Inhibiting the conversion may make lsof run a little faster. It is also useful when port name lookup is not working properly."
lsof -P
-P