| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH HEAD "1" "February 2026" "GNU coreutils 9.10" "User Commands" |
| 3 |
.SH NAME |
| 4 |
head \- output the first part of files |
| 5 |
.SH SYNOPSIS |
| 6 |
.B head |
| 7 |
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]... |
| 8 |
.SH DESCRIPTION |
| 9 |
.\" Add any additional description here |
| 10 |
.PP |
| 11 |
Print the first 10 lines of each FILE to standard output. |
| 12 |
With more than one FILE, precede each with a header giving the file name. |
| 13 |
.PP |
| 14 |
With no FILE, or when FILE is \-, read standard input. |
| 15 |
.PP |
| 16 |
Mandatory arguments to long options are mandatory for short options too. |
| 17 |
.TP |
| 18 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#head-c'\fB\-c, \-\-bytes=\,[\-]NUM\fP\X'tty: link'\/\fR |
| 19 |
print the first NUM bytes of each file; |
| 20 |
with the leading '\-', print all but the last NUM bytes of each file |
| 21 |
.TP |
| 22 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#head-n'\fB\-n, \-\-lines=\,[\-]NUM\fP\X'tty: link'\/\fR |
| 23 |
print the first NUM lines instead of the first 10; |
| 24 |
with the leading '\-', print all but the last NUM lines of each file |
| 25 |
.TP |
| 26 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#head-q'\fB\-q, \-\-quiet, \-\-silent\fP\X'tty: link' |
| 27 |
never print headers giving file names |
| 28 |
.TP |
| 29 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#head-v'\fB\-v, \-\-verbose\fP\X'tty: link' |
| 30 |
always print headers giving file names |
| 31 |
.TP |
| 32 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#head-z'\fB\-z, \-\-zero\-terminated\fP\X'tty: link' |
| 33 |
line delimiter is NUL, not newline |
| 34 |
.TP |
| 35 |
\X'tty: link https://www.gnu.org/software/coreutils/head#head--help'\fB\-\-help\fP\X'tty: link' |
| 36 |
display this help and exit |
| 37 |
.TP |
| 38 |
\X'tty: link https://www.gnu.org/software/coreutils/head#head--version'\fB\-\-version\fP\X'tty: link' |
| 39 |
output version information and exit |
| 40 |
.PP |
| 41 |
NUM may have a multiplier suffix: |
| 42 |
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, |
| 43 |
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y, R, Q. |
| 44 |
Binary prefixes can be used, too: KiB=K, MiB=M, and so on. |
| 45 |
.SH AUTHOR |
| 46 |
Written by David MacKenzie and Jim Meyering. |
| 47 |
.SH "REPORTING BUGS" |
| 48 |
Report bugs to: bug\[email protected] |
| 49 |
.br |
| 50 |
GNU coreutils home page: <https://www.gnu.org/software/coreutils/> |
| 51 |
.br |
| 52 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 53 |
.br |
| 54 |
Report any translation bugs to <https://translationproject.org/team/> |
| 55 |
.SH "SEE ALSO" |
| 56 |
\fBtail\fP(1) |
| 57 |
.PP |
| 58 |
.br |
| 59 |
Full documentation <https://www.gnu.org/software/coreutils/head> |
| 60 |
.br |
| 61 |
or available locally via: info \(aq(coreutils) head invocation\(aq |
| 62 |
.PP |
| 63 |
.br |
| 64 |
Packaged by Debian (9.10\-1) |
| 65 |
.br |
| 66 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 67 |
.br |
| 68 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 69 |
.br |
| 70 |
This is free software: you are free to change and redistribute it. |
| 71 |
.br |
| 72 |
There is NO WARRANTY, to the extent permitted by law. |