HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

head — Output the first part of files. More information: <https://manned.org/head.1p>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandfilesfirstcliheadpartoutput

Problem

How to use the head command: Output the first part of files. More information: <https://manned.org/head.1p>.

Solution

head — Output the first part of files. More information: <https://manned.org/head.1p>.

Output the first few lines of a file:
head -n {{count}} {{path/to/file}}

Code Snippets

Output the first few lines of a file

head -n {{count}} {{path/to/file}}

Context

tldr-pages: common/head

Revisions (0)

No revisions yet.