Use head When
You want file headers, top rows, or the first few records.
You are checking structure, format, or initial content quickly.
How to choose between the start and end of a file when inspecting text quickly.
`head` shows the beginning of a file or stream. `tail` shows the end, which often matters more for logs and recent output.
You want file headers, top rows, or the first few records.
You are checking structure, format, or initial content quickly.
You care about recent log lines or the latest output.
You want to follow appended content with `-f` in a live workflow.
head starts the story. tail shows the latest part.