PowerShell goodies

by May 23, 2016Microsoft, PowerShell

Reading Time: < 1 minute

Anyone knowing a bit of Linux has come across tail. For those who don’t know tail, it is a tool that will monitor text files, eg log files, for changes and display the newly added content in the terminal window. This comes in handy when troubleshooting actions and looking in the log file what has been logged. I was wondering how to do this in Windows.

Powershell has a similar function:

Add -tail and a number, this will show you the last 100 lines and keep the file open to output the additions to the file:

Harold Preyers

Harold Preyers

Solution Architect

VMware Certified Advanced Professional - Network Virtualization Design 2021

Archives

Categories