system enabled verified low v1.0.0

head

Output the first part of files

📋 Live Preview
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

Capabilities

system.file.head
system.file.search
system.file.process
system.file.copy
system.file.move
system.file.delete

Parameters

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

Examples

Basic usage with bytes

head ${bytes}

Display help message

head --help

Documentation

head โ€” Output the first part of files

Overview

head is a command-line utility for output the first part of files.

Usage

head -c {bytes} -n {lines} -q {quiet} -v {verbose} -z {zero-terminated}

Related Tools

system-file-tail