netstat command


[~]$ netstat -r                        
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         _gateway        0.0.0.0         UG        0 0          0 enp0s20u2u2
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s20u2u2
[~]$ netstat -rn 
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 enp0s20u2u2
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s20u2u2
[~]$ netstat -nat                      
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 192.168.1.2:39034       142.250.66.67:443       TIME_WAIT  
tcp        0      0 192.168.1.2:54550       13.225.103.119:443      TIME_WAIT  
tcp        0      0 192.168.1.2:39026       142.250.66.67:443       TIME_WAIT  
tcp        0      0 192.168.1.2:54030       13.225.103.69:443       TIME_WAIT  
tcp        0      0 192.168.1.2:54024       13.225.103.69:443       TIME_WAIT  
tcp        0      0 192.168.1.2:54022       13.225.103.69:443       TIME_WAIT  
tcp        0      0 192.168.1.2:54548       13.225.103.119:443      TIME_WAIT  
tcp6       0      0 ::1:631                 :::*                    LISTEN     
[~]$ sudo netstat -natp | grep 'ESTABLISHED'
[sudo] password for dt: 
[~]$  sudo netstat -natp | grep 'ESTABLISHED'
tcp        0      0 192.168.1.2:43950       172.217.161.131:443     ESTABLISHED 14721/brave --type= 
tcp        0      0 192.168.1.2:50464       151.101.2.137:443       ESTABLISHED 14721/brave --type= 
tcp        0      0 192.168.1.2:43956       172.217.161.131:443     ESTABLISHED 14721/brave --type= 
tcp        0      0 192.168.1.2:42296       13.225.103.83:443       ESTABLISHED 14721/brave --type= 
tcp        0      0 192.168.1.2:50462       151.101.2.137:443       ESTABLISHED 14721/brave --type= 
tcp        0      0 192.168.1.2:35102       13.225.103.102:443      ESTABLISHED 14721/brave --type= 

[~]$  sudo netstat -natpo | grep 'ESTABLISHED'
tcp        0      0 192.168.1.2:42336       13.225.103.83:443       ESTABLISHED 15430/brave --type=  keepalive (38.26/0/0)
tcp        0      0 192.168.1.2:50502       151.101.2.137:443       ESTABLISHED 15430/brave --type=  keepalive (41.07/0/0)
tcp        0      0 192.168.1.2:42348       13.225.103.83:443       ESTABLISHED 15430/brave --type=  keepalive (40.42/0/0)
tcp        0      0 192.168.1.2:42496       172.217.26.131:443      ESTABLISHED 15430/brave --type=  keepalive (40.87/0/0)
tcp        0      0 192.168.1.2:42490       172.217.26.131:443      ESTABLISHED 15430/brave --type=  keepalive (40.71/0/0)
tcp        0      0 192.168.1.2:50504       151.101.2.137:443       ESTABLISHED 15430/brave --type=  keepalive (41.22/0/0)
[~]$