A Windows equivalent of the Unix tail command

Liam picture Liam · Oct 9, 2008 · Viewed 488.7k times · Source

I'm looking for the equivalent of the Unix 'tail' command that will allow me to watch the output of a log file while it is being written to.

Answer

Alex picture Alex · Oct 9, 2008

If you use PowerShell then this works:

Get-Content filenamehere -Wait -Tail 30

Posting Stefan's comment from below, so people don't miss it

PowerShell 3 introduces a -Tail parameter to include only the last x lines