# Watching

Watching: The Start and End of a File: -TotalCount, -Tail and -Wait.

Updated: November 10, 2026

1. [The Start and End of a File: -TotalCount, -Tail and -Wait](https://www.ask-codey.com/lessons/powershell-head-and-tail) (Apprentice): Get-Content -TotalCount shows only a file's first lines and -Tail only its last, and -Wait keeps a file open on screen so every line added to it appears as it's written, until Ctrl+C stops it.

Source: https://www.ask-codey.com/courses/powershell-in-depth/topics/powershell-watching
