5 Easy Ways to Check for Open Ports on Linux - MUO
https://www.makeuseof.com/ways-check-for-open-ports-on-linux/
WEBJul 10, 2023 · netstat -tuln. Explanation of the command: -t shows TCP ports. -u shows UDP ports. -l shows listening ports. Replace this with a if you want to see all ports, irrespective of their state. -n shows the numeric value of the ports instead of resolving to service names. For example, show port 22 instead of SSH, i.e. the service running on the port. 2.
DA: 29 PA: 65 MOZ Rank: 98