Tail log files in Windows

Unix is like `tail -f log.txt` and windows is like *chick chick boom*

me@jaykilleen.com wrote this over 3 years ago and it was last updated over 3 years ago.


← Back to the Posts

Probably run from your application root directly. In this example I have use a ruby or rails project.

For years I've run tail -f log.txt and have easily committed that to memory.

Now doing some Ruby stuff on Windows (IKR!) and elegance is just not a thing.

  Get-Content '.\log\log.txt' -tail 100 -wait

I just can never remember the Get-Content bit. Not to mention which direction the ticks go... oh and also that -wait bit at the end... what a breakfast!