Output the first part of files
head -c {bytes} -n {lines} -q {quiet} -v {verbose} -z {zero-terminated} ๐ bytes ๐ lines ๐ quiet ๐ verbose ๐ zero-terminated head -c {bytes} -n {lines} -q {quiet} -v {verbose} -z {zero-terminated} Sandbox: execFile · Timeout: 30s
system.file.head system.file.search system.file.process system.file.copy system.file.move system.file.delete | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
bytes | string | No | - | print the first NUM bytes of each file; with the leading '-', print all but the last NUM bytes of each file | -c, --bytes |
lines | string | No | - | print the first NUM lines instead of the first 10; with the leading '-', print all but the last NUM lines of each file | -n, --lines |
quiet | string | No | - | never print headers giving file names | -q, --quiet, --silent |
verbose | string | No | - | always print headers giving file names | -v, --verbose |
zero-terminated | string | No | - | line delimiter is NUL, not newline --help display this help and exit --version output version information and exit | -z, --zero-terminated |
help | boolean | No | - | --help | |
version | boolean | No | - | --version |
Basic usage with bytes
head ${bytes} Display help message
head --help head is a command-line utility for output the first part of files.
head -c {bytes} -n {lines} -q {quiet} -v {verbose} -z {zero-terminated}