Skip to content
zero2vibecodelearn vibe coding

What head -n does

Show the first 5 lines of a file.

head-n5log.txt
  • headcommand — first lines of a file
  • -nflag — how many lines
  • 5argument: a file, a folder, or text
  • log.txtargument: a file, a folder, or text

Explain other commands