summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man1/head.md
diff options
context:
space:
mode:
Diffstat (limited to 'Base/usr/share/man/man1/head.md')
-rw-r--r--Base/usr/share/man/man1/head.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/head.md b/Base/usr/share/man/man1/head.md
new file mode 100644
index 0000000000..c1e5db74a0
--- /dev/null
+++ b/Base/usr/share/man/man1/head.md
@@ -0,0 +1,41 @@
+## Name
+
+head - output the first part of files
+
+## Synopsis
+
+```**sh
+$ 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)
+* `-b` `--bytes=NUM`: Number of bytes to print
+* `-q` `--quiet`: Never print filenames
+* `-v` `--verbose`: Always print filenames
+
+
+## Examples
+
+```sh
+# 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.
+
+```
+