소스 검색

Add 'netstat -tunlp'

Laurie Summers 1 년 전
부모
커밋
9d0e748f67
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  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.