Not satisfied by the Answer? Still have doubts?
Ask Question

A Windows equivalent of the Unix tail command

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.
tail windows

3 Answers

I'd suggest installing something like GNU Utilities for Win32. It has most favourites, including tail.
If you use PowerShell then this works:

Get-Content filenamehere -Wait -Tail 30

PowerShell 3 introduces a -Tail parameter to include only the last x lines
With Windows PowerShell you can use:
Get-Content <file> -Wait

Login / Signup to Answer the Question.

  • Be descriptive with your answer, and try to avoid copy-pasting external links, instead guide the user who has asked the question, where can they find the detailed answer.
  • You cannot share any URL in answer.
  • To make a text bold, surround the text with single asterisk, for example *bold text*
  • To format a text like code, surround the text within double asterisk, for example **code**
  • To add a multiline piece of code, surround the whole code within triple asterisk, for example *** multiline code ***
  • Please verify before submitting the answer.