1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 11:14:58 +00:00
serenity/Base/usr/share/man/man1/head.md
Thomas Voss 785f95d0af head(1): Fix typo in flag name
The shorthand for the ‘--bytes’ flag is ‘-c’, not ‘-b’.
2023-11-16 19:54:04 +01:00

862 B

Name

head - output the first part of files

Synopsis

$ head [option...] [file...]

Description

Print the first 10 lines of each file to standard output. With more than one file, precede each with a header giving the file name.

With no file, or when file is -, read standard input.

Arguments

  • file: File to process

Options

  • -n --number=NUM: Number of lines to print (default 10)
  • -c --bytes=NUM: Number of bytes to print
  • -q --quiet: Never print filenames
  • -v --verbose: Always print filenames

Examples

# Print the first four lines from README.md and precede it with a filename header
$ head -v -n 4 README.md
==> README.md <==
# SerenityOS

Graphical Unix-like operating system for x86 computers.

See also