See first line in a very large file
$ head -n 1 filepath
Explanation
head [OPTION]... [FILE]...
– Print the first 10 lines of each FILE
to standard output. With more than one FILE
, precede each with a header giving the file name. With no FILE
, or when FILE
is -
, read standard input. Arguments:
-n, --lines=[-]NUM
– print the firstNUM
lines instead of the first 10; with the leading-
, print all but the lastNUM
lines of each file.
We transform challenges into digital experiences
Get in touch to let us know what you’re looking for. Our policy includes 14 days risk-free!
Free project consultation