lsof print numeric ports

前端 未结 2 435
臣服心动
臣服心动 2021-02-01 12:16

How do you get lsof to produce numeric port information instead of attempting to resolve the port to service name?

For example, I want TCP *:http (LIS

2条回答
  •  一个人的身影
    2021-02-01 12:49

    Sometimes handy is:

    lsof -Pi
    

    When I tried losf -iP it gave me some trash, so make sure P goes first.


    As a side note: lsof -3.14 will provide the same trash, don't try this.

提交回复
热议问题