Windows下的tail一二三:tail、BareTail、WinTail
Windows下的tail一二三:tail、BareTail、WinTail
在Windows下查看輸了的日誌log的文件,使用UE或Edit plus可以知道文件改變了,但是光標都會回到文件頭部去,很不方便,用記事本就更不用說了。
如何才能在Windows下象在Linux使用tail一樣方便地來查看日誌呢?
1、Windows Server 2003 Resource Kit Tools
但是這個下載後的文件卻是要求Windows XP係統之類的,我用的是Win2K,暈,當然有方法來繞過它了。
還是先下載文件,用WinRAR可以解開它,成三個文件:rktools.msi、rktools_p.cab和rktools_s.cab
rktools.msi安裝包是所有的工具集的安裝文件,用7-Zip直接解壓打開就可以看到裏麵的文件了,比如解壓到C:/DOS目錄下
rktools_p.cab和rktools_s.cab文件裏包含一個rktools.chm的使用幫助文件,同樣用7-Zip來打開,用WinRAR或者WinCAB也可以打開
使用:
C:/DOS>tail/? 一成不變的方法,/?來查看使用幫助
usage: TAIL [switches] [filename]*
switches: [-?] display this message
[-n] display last n lines of each file (default 10)
[-f filename] keep checking filename for new lines
示例:
tail xxx.log 查看文件,默認顯示最後的10行
tail -100 xxx.log 顯示最後的100行
tail -f xxx.log 一直查看文件的變化。
Kit Tools裏還包含了很多有用的工具,其它的不進行介紹了,自已去挖掘:)
2、BareTail : A free real-time log file monitoring tool,有Free Version
也有專業版的BareTailPro,要收費的 : https://www.baremetalsoft.com/baretailpro/index.php
3、WinTail : Hoo的商業WinTail軟件,Hoo WinTail is a real-time log monitor and viewer for Windows like the UNIX tail -f utility.
建議用BareTail或Windows的tail.exe,基本上可以滿足我們的日常需要。
附上Windows Server 2003 Resource Kit Tools的tail.exe下載,免得去下載安裝或解壓了。
下載:tail.exe
附上Windows Server 2003 Resource Kit Tools的tail.exe下載,免得去下載安裝或解壓了。
下載:tail.exe
最後更新:2017-04-02 00:06:21