当前位置:首页 > 操作系统 > Windows

【PHP分享】Windowstail工具分享

  作者:zhanhailiang 日期:2014-09-28

在Linux下可以使用tail -f工具实时查看输出的日志。最近切换到本地Windows开发环境,顿时有点不爽。百度了下,终于找到tail的Windows的实现版本。

1. 下载tail,解压后将tail.exe复制到Path路径下,以笔者为例,C:WindowsSystem32;

2. 测试如下:

Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation。保留所有权利。D:Userswade.zhan><strong>tail --help</strong>tail 1.0.0.1 created by Jorgen BosmanUsage: tail [options] fileOptions:  -[x]f : Follow the file and display new lines as they are written to the file          Optionally display the x last lines first (default=10)  -n x  : Displays the last x lines of the file  -s x  : Sleeps x miliseconds between 2 read attempts for -f optionD:Userswade.zhan><strong>tail -f D:/temp/php-errors.log</strong>

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐