Check Which Ports Are Listening

The best way to get a list of ports which are being listened to on a UNIX environment.

sudo lsof -i -P -n | grep LISTEN
end of storey Last modified:
Edited 1 time ยท First written 5 years ago