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. With
14 no FILE, or when FILE is -, read standard input.
15
16 Mandatory arguments to long options are mandatory for short options
17 too.
18
19 -c, --bytes=[-]K
20 print the first K bytes of each file; with the leading `-',
21 print all but the last K bytes of each file
22
23 -n, --lines=[-]K
24 print the first K lines instead of the first 10; with the lead‐
25 ing `-', print all but the last K lines of each file
26
27 -q, --quiet, --silent
28 never print headers giving file names
29
30 -v, --verbose
31 always print headers giving file names
32
33 --help display this help and exit
34
35 --version
36 output version information and exit
37
38 K may have a multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000, M
39 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E,
40 Z, Y.
41
43 Written by David MacKenzie and Jim Meyering.
44
46 Report head bugs to bug-coreutils@gnu.org
47 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
48 General help using GNU software: <http://www.gnu.org/gethelp/>
49 Report head translation bugs to <http://translationproject.org/team/>
50
52 Copyright © 2010 Free Software Foundation, Inc. License GPLv3+: GNU
53 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
54 This is free software: you are free to change and redistribute it.
55 There is NO WARRANTY, to the extent permitted by law.
56
58 The full documentation for head is maintained as a Texinfo manual. If
59 the info and head programs are properly installed at your site, the
60 command
61
62 info coreutils 'head invocation'
63
64 should give you access to the complete manual.
65
66
67
68GNU coreutils 8.4 June 2018 HEAD(1)