小兔的筆記本

Just another WordPress.com weblog

iftop介紹

Posted by Tsukino Usagi 於 七月 5, 2007

iftop是許多top-like程式的其中一個, 主要用途是用來即時監看網路狀態.

安裝(以Ubuntu 7.04 Feisty為例):

$ sudo apt-get install iftop

執行(必須以root身份):

$ iftop

查看ppp0網路介面的即時流量:

$ iftop -i ppp0

以位元組(bytes)為單位顯示流量(預設是位元bits):

$ iftop -B

直接顯示IP, 不進行DNS反解:

$ iftop -n

直接顯示連接埠編號, 不顯示服務名稱:

$ iftop -N

其他參數可下 iftop -h 看說明.

進入iftop畫面時, 可按 p 切換是否顯示連接埠, n 切換顯示IP或主機的domain name, N切換顯示連接埠代號或名稱, p暫停顯示, b切換是否顯示長條, B切換計算幾秒內的平均流量, 其他按鍵可以按h觀看說明.

設定檔的位置在~/.iftoprc , 關於設定檔的寫法可以參考 iftop 的 info page.

5 回應 to “iftop介紹”

  1. […] iftop介紹 […]

  2. Nathaniel said

    Yes! Finally someone writes about Accutane.

  3. Vincent said

    Does your site have a contact page? I’m having problems locating it but, I’d like to shoot you an email.
    I’ve got some ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it expand over time.

  4. Hurrah! Finally I got a website from where I be able to in fact
    obtain valuable facts regarding my study and knowledge.

  5. alprazolam said

    I am not sure where you’re getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent information I was looking for this info for my mission.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

 
%d 位部落客按了讚: