📜  mac list used port - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:49.663000             🧑  作者: Mango

代码示例4
sudo lsof -nP -iTCP:$PORT | grep LISTEN
sudo lsof -nP -i:$PORT | grep LISTEN