如何在 Windows 中通过 cygwin 跟踪 c:/wamp/logs/ 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6493262/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:12:46  来源:igfitidea点击:

how to cygwin tail over c:/wamp/logs/ file in Windows?

windowscygwinwamptail

提问by Mecalito

I'm using Cygwin:

我正在使用 Cygwin:

tail -f prueba.txt

The file is located in c:\cygwin\home\ (/home/).

该文件位于 c:\cygwin\home\ (/home/)。

How can I do exactly the same for a file that is located in:

如何对位于以下位置的文件执行完全相同的操作:

c:/wamp/logs/

回答by paxdiablo

cygdriveis the root point for Windows drives so c:\can be found within CygWin at /cygdrive/c.

cygdrive是 Windows 驱动器的根点,因此c:\可以在 CygWin 中找到/cygdrive/c

So the command you're looking for is:

所以你要找的命令是:

tail -f /cygdrive/c/wamp/logs/somefile.txt