Show the first lines of a file; use -n to choose how many.
head -n 20 access.logLINUX COMMAND ATLAS · COMMAND GUIDE
Show the first lines of a file; use -n to choose how many.
GNU Coreutilshead [OPTION]... [FILE]...
Show the first lines of a file; use -n to choose how many.
head -n 20 access.logShow the first 20 lines of a log.
head -n 20 app.logInspect the first 64 bytes of a file.
head -c 64 image.binWhen reading from a pipe, head exits after receiving enough input, which can stop upstream commands early.