在Windows上是否有等效的tail -f?

很多时候我发现自己必须遵循 Windows上日志文件的演变.有没有相当于 Linux
tail -f <filename>

在Windows终端上执行命令,最好不必安装外部软件?其他SO帖子谈论安装第三方程序.

在Powershell中,您可以使用带有-Wait标志的 Get-Content

Get-Content filename.log -Wait

您可以将Get-Content缩短为gc.这个问题表明可能的重复有一个答案,提到这个和一些有用的额外参数 –
看看https://stackoverflow.com/a/188126.我不确定它是否真的重复,因为这个问题是关于Linux尾部的一般Windows替代品,而不是关于tail -f.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...