How to tail a log file in Windows

Tailing a log file in Linux is very easy with the tail command, for instance:

tail -f logfile.log

However, Windows does not have a tail command. Luckily it does have the Get-Content command within PowerShell.

PS C:\Users\myself\Desktop> Get-Content logfile.log -Wait

Leave a Reply

Your email address will not be published. Required fields are marked *