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
Sometimes handy is:
lsof -Pi
When I tried losf -iP it gave me some trash, so make sure P goes first.
losf -iP
P
As a side note: lsof -3.14 will provide the same trash, don't try this.
lsof -3.14