windows下的tail

来源:互联网 发布:淘宝网零食店 编辑:程序博客网 时间:2024/04/28 08:52
如何才能在Windows下象在Linux使用tail一样方便地来查看日志呢?
1、Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe 
使用:
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 一直查看文件的变化。
附上Windows Server 2003 Resource Kit Tools的tail.exe下载,免得去下载安装或解压了。
下载:tail.exe
注意,最后的下载要有javaeye帐户 
原创粉丝点击