Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mac list used port

sudo lsof -nP -iTCP:$PORT | grep LISTEN
sudo lsof -nP -i:$PORT | grep LISTEN
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mac #list #port
ADD COMMENT
Topic
Name
6+5 =