List open or listening ports

MacOS

1
lsof -nP -i4TCP

RedHat/Centos7

1
netstat -tulpn
This entry was posted in Bash, Operating System. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


two − 1 =