linux how to see ports in use shell by SmokeFrog on Mar 31 2020 Comment 1# Any of the following 2 sudo lsof -i -P -n | grep LISTEN 3 sudo netstat -tulpn | grep LISTEN 4 sudo lsof -i:22 # see a specific port such as 22 5 sudo nmap -sTU -O IP-address-Here ubuntu check process on port shell by Alberto Peripolli on May 19 2020 Donate Comment 1 sudo lsof -i:22 how to check list of open ports in linux typescript by Enchanting Earthworm on May 05 2020 Comment 1 sudo lsof -i -P -n | grep LISTEN 2 sudo netstat -tulpn | grep LISTEN 3 sudo lsof -i:22 # see a specific port such as 22 4 sudo nmap -sTU -O IP-address-Here check what ports are open linux shell by Confused Cardinal on May 31 2020 Comment 1 ## if you use linux 2 sudo ss -tulw 3 ​