【PHP分享】Windows tail工具分享

  作者: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>tail --help
tail 1.0.0.1 created by Jorgen Bosman
Usage: tail [options] file
Options:
  -[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 option
D:Userswade.zhan>tail -f D:/temp/php-errors.log
原文地址:https://www.cnblogs.com/blfshiye/p/4008594.html