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=[-]N
20 print the first N bytes of each file; with the leading `-',
21 print all but the last N bytes of each file
22
23 -n, --lines=[-]N
24 print the first N lines instead of the first 10; with the lead‐
25 ing `-', print all but the last N 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 N may have a multiplier suffix: b 512, k 1024, m 1024*1024.
39
41 Written by David MacKenzie and Jim Meyering.
42
44 Report bugs to <bug-coreutils@gnu.org>.
45
47 Copyright © 2007 Free Software Foundation, Inc.
48 This is free software. You may redistribute copies of it under the
49 terms of the GNU General Public License
50 <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
51 extent permitted by law.
52
54 The full documentation for head is maintained as a Texinfo manual. If
55 the info and head programs are properly installed at your site, the
56 command
57
58 info head
59
60 should give you access to the complete manual.
61
62
63
64GNU coreutils 6.9 March 2008 HEAD(1)