mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
Base: Add manpages for cut, diff, head & rmdir command line utilities
This commit is contained in:
parent
87068896d0
commit
d364c8e352
4 changed files with 155 additions and 0 deletions
41
Base/usr/share/man/man1/head.md
Normal file
41
Base/usr/share/man/man1/head.md
Normal file
|
@ -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.
|
||||
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue