Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

list used ports on mac

sudo lsof -PiTCP -sTCP:LISTEN

COMMAND     PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
GitHub      850 grgarside   6u   IPv4 0x23c345381d089301      0t0  TCP localhost:25035 (LISTEN)
Comment

running ports in mac

sudo lsof -PiTCP -sTCP:LISTEN
Comment

mac list used port

sudo lsof -i -P | grep LISTEN
Comment

check all the ports in use mac

$ npx kill-port 3000 8080 8081

Process on port 3000 killed
Process on port 8080 killed
Process on port 8081 killed
Comment

ways to identify ports in use on Mac

sudo lsof -i -n -P | grep TCP
Comment

mac list used port

sudo lsof -nP -i4TCP:$PORT | grep LISTEN
Comment

mac list used port

sudo lsof -nP -iTCP:$PORT | grep LISTEN
sudo lsof -nP -i:$PORT | grep LISTEN
Comment

PREVIOUS NEXT
Code Example
Shell :: install java 17 ubuntu 
Shell :: install pymysql 
Shell :: sqlite3 install ubuntu 
Shell :: dns flush command 
Shell :: kde connect not showing devices 
Shell :: install wps ubuntu 
Shell :: restart supervisor 
Shell :: git list config 
Shell :: display nginx logs 
Shell :: failed to load module canberra-gtk-module 
Shell :: check processor in ubuntu 
Shell :: install beautifulsoup windows 
Shell :: Installing graphviz in Linux 
Shell :: git set url with token 
Shell :: kazam install ubuntu 
Shell :: rclone ubuntu install guide tutorial 
Shell :: docker check linux os 
Shell :: restart touch bar mac 
Shell :: clear docker 
Shell :: Create React App requires Node 14 or higher. 
Shell :: where is the crontab log 
Shell :: adb port issue fix 
Shell :: git unset alias 
Shell :: install openjdk 8 sdk on ubuntu 
Shell :: remove nginx mac 
Shell :: ubuntu clean up disk space 
Shell :: install java in kali linux 
Shell :: how to pull and overwrite local changes git 
Shell :: libgthread-2.0.so.0: cannot open shared object file: No such file or directory 
Shell :: ubuntu add permission to folder 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =