Ubuntu – Check running ports

How to check if port is in use in

sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here

Leave a Reply

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

https://www.google.com/recaptcha/api.js?onload=wpcaptcha_captcha&render=6LcfOIUmAAAAAIGmuvjUI1UMleIKMckvA94vyQsj&ver=1.23