【问题标题】:how to cygwin tail over c:/wamp/logs/ file in Windows?如何在 Windows 中对 c:/wamp/logs/ 文件进行 cygwin tail?
【发布时间】:2011-06-27 13:04:36
【问题描述】:

我正在使用 Cygwin:

tail -f prueba.txt

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

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

c:/wamp/logs/

【问题讨论】:

    标签: windows cygwin wamp tail


    【解决方案1】:

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

    所以你要找的命令是:

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

    【讨论】:

    • 马拉维索斯!!杰出的!!谢谢!
    • 我通常将此命令与 grep 结合使用来着色错误,您也可以使用 tail -f /cygdrive/c/wamp/logs/*
    猜你喜欢
    • 2011-10-01
    • 2010-09-20
    • 2012-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-07
    • 2016-10-04
    • 2017-04-08
    相关资源
    最近更新 更多