How to check if port is in use on Linux or Unix How to check if port is in use on Linux or Unix sudo lsof -i -P -n | grep LISTEN sudo netstat -tulpn | grep LISTEN sudo lsof -i:22 ## see a specific…
ss / netstata command ss -s ss -lp ss -pl | grep port no. time netstat -at time ss -atr linux-investigate-sockets-network-connections