Linux Command - netstat
Definition
source: https://www.tecmint.com/20-netstat-commands-for-linux-network-management/
netstat(network statistics) is a command line tool for monitoring connections both incoming and outgoing as well as viewing routing tables, interface statistics, etc.
Options
So, let’s begin to learn some useful options for netstat.
-a
Show all.
-n
Show networks as numbers, not hostnames.
-p
Show protocol.
Most repeated command
You can use the practical command below to find listening programs
1 | netstat -anp | grep 8080 |
And you also can use telnet to check specific port.
1 | telnet [hostname or ip] [port] |