netstatコマンドの説明します。
説明
netstatは、ポートの状態を表示するコマンドです。
使い方:netstat
読み方:ネットスタット
略:network statistics
具体例
# ポートの接続情報を表示
[root@CE08PRD101 work]# netstat -antu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5355 0.0.0.0: LISTEN 1315/systemd-resolv
tcp 0 0 0.0.0.0:111 0.0.0.0: LISTEN 1/systemd
tcp 0 0 192.168.122.1:53 0.0.0.0: LISTEN 1119/named
tcp 0 0 192.168.0.151:53 0.0.0.0: LISTEN 1119/named
tcp 0 0 127.0.0.1:53 0.0.0.0: LISTEN 1119/named
tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 1089/sshd
tcp 0 0 0.0.0.0:631 0.0.0.0: LISTEN 1091/cupsd
tcp 0 0 127.0.0.1:953 0.0.0.0: LISTEN 1119/named
tcp 0 36 192.168.0.151:22 192.168.0.5:60028 ESTABLISHED 1922/sshd: root [pr
tcp6 0 0 :::5355 ::: LISTEN 1315/systemd-resolv
tcp6 0 0 :::111 ::: LISTEN 1/systemd
tcp6 0 0 :::22 ::: LISTEN 1089/sshd
tcp6 0 0 :::631 ::: LISTEN 1091/cupsd
tcp6 0 0 :::23 ::: LISTEN 1/systemd
udp 0 0 0.0.0.0:56292 0.0.0.0: 907/avahi-daemon: r
(省略)