在指令列,下
引用:
#netstat -ctp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.1.16:microsoft-ds 192.168.1.14:1110 ESTABLISHED 29827/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.162:1025 ESTABLISHED 2456/smbd
tcp 0 0 192.168.1.16:microsoft-ds 192.168.1.178:1027 ESTABLISHED 2595/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.136:1030 ESTABLISHED 2506/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.198:1093 ESTABLISHED 2649/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.14:1246 ESTABLISHED 2626/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.11:nfs ESTABLISHED 20903/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.183:1028 ESTABLISHED 2412/smbd
tcp 0 0 192.168.1.16:microsoft-ds 192.168.1.105:1063 ESTABLISHED 2518/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.153:1038 ESTABLISHED 2607/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.149:1028 ESTABLISHED 2655/smbd
tcp 0 0 192.168.1.16:netbios-ssn 192.168.1.103:1033 ESTABLISHED 2630/smbd
tcp 0 0 ::ffff:192.168.1.16:ssh ::ffff:192.168.1.200:1189 ESTABLISHED 2555/0
|
netstat指令說明
功能:顯示網路狀態
語法:netstat [-acCeFghilMnNoprstuvVwx]
套件名稱:net-tools
補充說明:利用netstat指令可讓你得知整個linux系統的網路情況,假設你沒有指定任可參數給netstat指令,則效果利指令[-F]相同
參數說明:
-a或-all
-A
-c
-C
-e
-F
-g
-h
-i
-l
-M
-n
....
...
..
參數太多