Ver código fonte

Add 'netstat -tunlp'

Laurie Summers 1 ano atrás
pai
commit
9d0e748f67
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16 0
      netstat -tunlp

+ 16 - 0
netstat -tunlp

@@ -0,0 +1,16 @@
+from: https://linuxize.com/post/check-listening-ports-linux/
+
+Check Listening Ports with netstat
+netstat is a command-line tool that can provide information about network connections.
+
+To list all TCP or UDP ports that are being listened on, including the services using the ports and the socket status use the following command:
+
+sudo netstat -tunlp
+
+The options used in this command have the following meaning:
+
+-t - Show TCP ports.
+-u - Show UDP ports.
+-n - Show numerical addresses instead of resolving hosts.
+-l - Show only listening ports.
+-p - Show the PID and name of the listener’s process. This information is shown only if you run the command as root or sudo user.