1HEAD(1) User Commands HEAD(1)
2
3
4
6 head - output the first part of files
7
9 head [OPTION]... [FILE]...
10
12 Print the first 10 lines of each FILE to standard output. With more
13 than one FILE, precede each with a header giving the file name.
14
15 With no FILE, or when FILE is -, read standard input.
16
17 Mandatory arguments to long options are mandatory for short options
18 too.
19
20 -c, --bytes=[-]NUM
21 print the first NUM bytes of each file; with the leading '-',
22 print all but the last NUM bytes of each file
23
24 -n, --lines=[-]NUM
25 print the first NUM lines instead of the first 10; with the
26 leading '-', print all but the last NUM lines of each file
27
28 -q, --quiet, --silent
29 never print headers giving file names
30
31 -v, --verbose
32 always print headers giving file names
33
34 -z, --zero-terminated
35 line delimiter is NUL, not newline
36
37 --help display this help and exit
38
39 --version
40 output version information and exit
41
42 NUM may have a multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000,
43 M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P,
44 E, Z, Y, R, Q. Binary prefixes can be used, too: KiB=K, MiB=M, and so
45 on.
46
48 Written by David MacKenzie and Jim Meyering.
49
51 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
52 Report any translation bugs to <https://translationproject.org/team/>
53
55 Copyright © 2023 Free Software Foundation, Inc. License GPLv3+: GNU
56 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
57 This is free software: you are free to change and redistribute it.
58 There is NO WARRANTY, to the extent permitted by law.
59
61 tail(1)
62
63 Full documentation <https://www.gnu.org/software/coreutils/head>
64 or available locally via: info '(coreutils) head invocation'
65
66
67
68GNU coreutils 9.3 September 2023 HEAD(1)