netstat - Linux
By Bennie
at 2013-03-08T07:39
at 2013-03-08T07:39
Table of Contents
參考這個網頁
http://www.thegeekstuff.com/2010/03/netstat-command-examples/
想查找所有使用port 80的 process
$ netstat -an | grep ':80'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 1 0 10.100.21.52:49756 91.189.89.144:80 CLOSE_WAIT
但是如果我用
$ netstat -a | grep ':80'
卻沒有任何回傳
但是按照網頁敘述
-a 和 -an的區別是
When you don’t want the name of the host, port or user to be displayed, use
netstat -n option.
照理來說 -a應該也會有回傳值才對
甚至應該回傳更多資訊(host / port / user)
請問為什麼我沒得到任何回傳值呢?
thx
--
http://www.thegeekstuff.com/2010/03/netstat-command-examples/
想查找所有使用port 80的 process
$ netstat -an | grep ':80'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 1 0 10.100.21.52:49756 91.189.89.144:80 CLOSE_WAIT
但是如果我用
$ netstat -a | grep ':80'
卻沒有任何回傳
但是按照網頁敘述
-a 和 -an的區別是
When you don’t want the name of the host, port or user to be displayed, use
netstat -n option.
照理來說 -a應該也會有回傳值才對
甚至應該回傳更多資訊(host / port / user)
請問為什麼我沒得到任何回傳值呢?
thx
--
Tags:
Linux
All Comments
By Dora
at 2013-03-09T08:08
at 2013-03-09T08:08
By Charlotte
at 2013-03-12T04:23
at 2013-03-12T04:23
By Adele
at 2013-03-12T14:18
at 2013-03-12T14:18
Related Posts
如何在Build Android driver?
By Zora
at 2013-03-08T00:10
at 2013-03-08T00:10
ubuntu 桌面將轉用Qt/QML
By Sandy
at 2013-03-07T11:34
at 2013-03-07T11:34
openSUSE Desktop Introduction: KDE Plasma Desktop Basics
By Linda
at 2013-03-07T10:15
at 2013-03-07T10:15
判斷 git feature branch codebase 工具
By Lily
at 2013-03-07T00:38
at 2013-03-07T00:38
Parted Magic Linux Putty ssh 連 ptt
By Necoo
at 2013-03-06T23:45
at 2013-03-06T23:45