Linux networking cheatsheet
Linux networking: Ports and connections
6 common Linux networking tasks.
List listening ports
Show listening TCP and UDP sockets and the processes that own them.
sudo ss -tulpn
Scan a host's open ports
List open ports on a host. Only scan systems you own or have permission to test.
nmap -sV -p 1-1024 192.168.1.10
Caution: Scanning networks you don't control may be illegal or break policy.