This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
標題列表  簡短摘要
aquatower | 9 September,2009 16:02

%因ntop要消耗的資源比較大
%若只是要暫時查是那個IP在送大量流量, 有一個簡單的工具(iftop)

#yum install iftop

[root@tp101-002 rrd]# iftop (很方便, 可以快速找到原兇)
%快速鍵
h : help
n : dns resolution on/off
p : ports display on/off
(Read More...)

aquatower | 9 September,2009 15:35

Ntop安裝紀錄

FC9

1. 安裝套件
(1) gdbm , gdbm-devel
(2) gd, gd-devel
(3) libpng-devel
(4) zlib, zlib-devel
(5) rrdtool, rrd-devel
(Read More...)

aquatower | 10 April,2009 10:24

最近遇到DVD片無法播放的情況, 後來查到是那台NB是從美國買的
於是光碟機的預設區碼在 [1] , 沒辦法讀台灣發行的片子
須用軟體去更改[3], 才能正常播放


DVD區域碼是什麼?

電影製片商將發行權授予不同國家的發行商時,會要求在DVD加入一些編碼,使這些影片只能在某些地區的DVD機播放。現在世界上共分為下列幾種的DVD區碼:DVD區碼一覽表
第1區 美國、加拿大、東太平洋島嶼
第2區 日本、西歐、北歐、南非、中東 、埃及
(Read More...)

aquatower | 10 April,2009 10:23

grep指令用法

grep -i pattern files :不區分大小寫地搜索。預設為區分大小寫,
grep -l pattern files :只列出符合字串的檔名,
grep -L pattern files :列出不符合字串的檔名

#grep -i 'word' grep.txt --color
搜尋grep.txt裡有word的字串, 並把行數印出

--color: 搜尋的字串標注顏色 (預設是red)
(Read More...)

aquatower | 30 March,2009 14:02

(1)man 輸出文字檔
#man 指令|col -b > filename.txt
ex: sed指令輸出到文字檔
#man sed|col -b >sed.txt

(2)awk
#awk '{pattern}' filename
ex: 印出第三欄資料
#netstat -a|awk '{print $3}'

(Read More...)

1 2 3 4