NAME
head—Output the first part of files

SYNOPSIS
head [–c N[bkm]] [–n N] [–qv] [–bytes=N[bkm]] [–lines=N] [–quiet] [–silent] [–verbose] [–help] [–version] [file…]
head [–Nbcklmqv] [file…]

DESCRIPTION
This manual page documents the GNU version of head. head prints the first part (10 lines by default) of each given file; it reads from standard input if no files are given or when a filename of – is encountered. If more than one file is given, it prints a header consisting of the file’s name enclosed in ==> and <== before the output for each file.

OPTIONS
head accepts two option formats: the new one, in which numbers are arguments to the option letters; and the old one, in which the number precedes any option letters.

OptionsDescription
–c N, –bytes NPrint first N bytes. N is a nonzero integer, optionally followed by one of the following characters to specify a different unit.
b      512-byte blocks.
k      1-kilobyte blocks.
m     1-megabyte blocks.
–l, –n N, –lines NPrint first N lines.
–q, –quiet, –silentNever print filename headers.
–v, –verboseAlways print filename headers.
–helpPrint a usage message and exit with a nonzero status.
–versionPrint version information on standard output, then exit.

If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now

 

We are thankful for your support.

Follow me

SATISH KUMAR

I am Satish Kumar, Founder of LinuxConcept. Linux and F.O.S.S enthusiast, love to work on open source platform and technologies.
Follow me