HEAD(1)
π 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
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms