Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using Cygwin:

tail -f prueba.txt

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

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

c:/wamp/logs/
like image 257
Mecalito Avatar asked Jun 27 '11 13:06

Mecalito


People also ask

Can you tail a log in Windows?

An advanced tail -f command with GUI, MakeLogic Tail is the tail for Windows. It can be used to monitor the log files of various servers and comes with a variety of other intuitive and useful features.

How do you tail a log file?

To watch log files that get rotated on a daily base you can use the -F flag to tail command. The tail -F will keep track if new log file being created and will start following the new file instead of the old file. However, by default, tail command will display the last 10 lines of a file.

How do you tail a log file continuously?

The tail command is fast and simple. But if you want more than just following a file (e.g., scrolling and searching), then less may be the command for you. Press Shift-F. This will take you to the end of the file, and continuously display new contents.


1 Answers

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

So the command you're looking for is:

tail -f /cygdrive/c/wamp/logs/somefile.txt
like image 200
paxdiablo Avatar answered Nov 14 '22 23:11

paxdiablo