netstat -vatunp

From wikieduonline
Jump to navigation Jump to search

netstat -vatunp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      12930/systemd-resol
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      3376/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2981/sshd
tcp        0    196 10.10.110.25:22         10.10.10.67:52541       ESTABLISHED 18866/sshd: USERNAME
tcp6       0      0 :::22                   :::*                    LISTEN      2981/sshd
udp        0      0 127.0.0.53:53           0.0.0.0:*                           12930/systemd-resol
udp        0      0 192.168.122.1:53        0.0.0.0:*                           3376/dnsmasq
udp        0      0 0.0.0.0:67              0.0.0.0:*                           3376/dnsmasq
netstat -vatunp 
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      1 10.10.10.10:56608      10.10.10.99:23         SYN_SENT


TCP Listening ports, UDP will not be shown:

netstat -vatunp | grep LISTEN 


Related Linux commands[edit]

Related macOS commands[edit]

See also[edit]

Advertising: