lsof print numeric ports

前端 未结 2 436
臣服心动
臣服心动 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条回答
  •  旧时难觅i
    2021-02-01 12:39

    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."

提交回复
热议问题