HEAD(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸŽ€ HEAD(1) πŸŽ€

okay bestie, so we're in the General Commands Manual and this little icon is called head β€” yes the name is literal, it prints the head of stuff. slay.

✨ NAME ✨

head β€” print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

And this next bit is lowkey important so I'm saying it twice, just like the original does: mandatory arguments to long options are mandatory for short options too. fr fr. like if --bytes needs a number, -c needs one too. iykyk πŸ’…

🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole vibe is: print the first 10 lines of each FILE to standard output. that's it. that's the main character energy.

Things get a little more decorated when you hand it more than one FILE β€” then it precedes each one with a header giving the file name, so you know which output came from where πŸŽ€

With no FILE, or when FILE is -, it reads standard input. stdin bestie, we love her.

And again, because it's that serious: mandatory arguments to long options are mandatory for short options too. πŸ’–

πŸ’… OPTIONS πŸ’…

  • -c, --bytes <[-]NUM> β€” print the first NUM bytes of each file; with a leading -, print all but the last NUM bytes of each file. yes, the minus goes in the value, not in front of the flag. she's quirky like that ✨
  • -n, --lines <[-]NUM> β€” print the first NUM lines instead of the first 10; with a leading -, print all but the last NUM lines of each file. iconic, honestly πŸ”₯
  • -q, --quiet β€” never print headers giving file names. shhh. no names, no drama πŸ™ˆ
  • -v, --verbose β€” always print headers giving file names. names ON. loud and proud πŸ‘‘
  • -z, --zero-terminated β€” line delimiter is NUL, not newline. NUL-terminated era 🌈
  • -h, --help β€” Print help. we love a helpful queen 🫢
  • -V, --version β€” Print version. the lore πŸ’€
  • [FILE] [default: -] β€” the file(s) you're feeding her. leave it off and it defaults to -, which means standard input. so chill πŸ“

⭐ VERSION ⭐

v(uutils coreutils) 0.12.0

okay that's the whole page bestie, go print some heads πŸ’œ

signing off with the official stamp: v(uutils coreutils) 0.12.0, dated 2026-09-17. no cap, that's literally what the footer said. πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from