Linux power users and administrators have long used the tail utility to monitor log files, but did you know that you can do the same on Windows?
Traditionally tail has been used to view the bottom X number of lines from a log file. While Windows doesn’t have a standalone utility to do what tail does, we do have the Get-Content PowerShell cmdlet which happens to have a tail parameter.
Get-Content D:\log.txt -Tail 3
Other extremely popular use for tail is using it to monitor logs, when used in this manner the log entry is printed to the console every time something writes to the log. This can be accomplished using the wait parameter.
Get-Content D:\log.txt –Wait
That’s all there is to it.
- › How to Restart Your Island in “Animal Crossing: New Horizons”
- › How to Click the Home Button with a Mouse on an iPad
- › You Can Relive the GameCube on a Modern TV, and It’s Amazing
- › 9 Ways to Quickly Make Money in “Animal Crossing: New Horizons”
- › How Apple’s 2020 iPad Pro Compares to the 1994 Trackpad Mac