From c2d0b9de8c5223e48b353337ad7b0d0e975e3805 Mon Sep 17 00:00:00 2001 From: asunrong <103101986+asunrong@users.noreply.github.com> Date: Fri, 10 Feb 2023 10:28:29 +0800 Subject: [PATCH] doc: Update lsof.md (#466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 查看指定端口的占用 --- command/lsof.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/lsof.md b/command/lsof.md index 7dca696be9..5c419977c1 100644 --- a/command/lsof.md +++ b/command/lsof.md @@ -156,5 +156,8 @@ lsof -i:9981 -P -t -sTCP:LISTEN ```shell lsof $filename ``` - +查看端口占用 +```shell +lsof -i:$port +```