# Watching

Watching: The Start and End of a File: head and tail.

Updated: November 10, 2026

1. [The Start and End of a File: head and tail](https://www.ask-codey.com/lessons/bash-head-and-tail) (Apprentice): head prints the first lines of a file and tail the last, ten unless -n says how many, and tail -f keeps watching a file and prints each new line as it's added.

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