Get-Content <my_log_file> -Wait -Tail 10
-Wait signifies wait for new logs and display it
-Tail 10 signifies display the last 10 lines from <my_log_file>
Get-Content <my_log_file> -Wait -Tail 10
-Wait signifies wait for new logs and display it
-Tail 10 signifies display the last 10 lines from <my_log_file>
© 2025 Software engineer >> Sysadmin >> Devops >> SRE — Powered by WordPress
Theme by Anders Noren — Up ↑
Leave a Reply