head
Linux · Text · available in the simulator
What it does
Output the first part of files.
Syntax
head [-n líneas] [-c bytes] [archivo...]
Options and parameters
-n NFirst N lines.
-c NFirst N bytes.
-nPrint the specified number of lines; defaults to 10.
head -n 20 archivo.log-cPrint the specified number of bytes.
-qNever print headers with file names.
Usage examples
head archivo.txthead -n 20 archivo.txthead -c 100 archivo.txthead -c 100 archivo.binhead -n 20 archivo.log