Skip to content
masterclass Buddy

Linux & Shell · Command

head

head prints the beginning of files. It shows the first 10 lines by default and can instead select a chosen number of lines or bytes.

Last updated

Syntax

head [ OPTION ]... [ FILE ]...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • tail(1)

Source: head(1) - Linux manual page. Checked 2026-11-03.