To check the listening ports and applications on Linux: Run any one of the following command on Linux to see open ports:
lsof -i -P -n | grep LISTEN lsof -i:22 ## see a specific port such as 22 ## sudo nmap -sTU -O IP-address-Here ss -tulw netstat -tulpn | grep LISTEN (depreciated, use ss)