headdisplay first part of file |
Command |
head
[-bcklmn
num] [file ...]
head
[-
num] [file ...]
head
displays the first 10 lines of each file
given on the command line. If you do not specify file,
head
reads the standard input.
-b
numdisplays the first num blocks (a block is 512 bytes) of each file.
-c
numdisplays the first num bytes of each file.
-k
numdisplays the first num kilobytes (1024 bytes) of each file.
-l
numdisplays the first num lines of each file.
-m
numdisplays the first num megabytes of each file.
-n
numdisplays the first num lines of each file.
-
numdisplays the first num lines of each file.
0
Successful completion.
1
Failure due to any of the following:
2
Failure due to any of the following:
-n
optionThe value num, following a -b
,
-c
, -k
, -l
,
-m
, or -n
option was not a valid
number.
-n
num and
-
num options though it considers the latter obsolete.