# just show the last 20 lines and exit
Get-Content MyLogFile.log -Tail 20
# show last 20 lines and follow as content is appended to the log
Get-Content MyLogFile.log -Tail 20 -Wait
# just show the last 20 lines and exit
Get-Content MyLogFile.log -Tail 20
# show last 20 lines and follow as content is appended to the log
Get-Content MyLogFile.log -Tail 20 -Wait
0 Comments