Updated format to be more consistent (#30311)
Changed the more information section to be more consistent with the rest of the directory while adding an extra link to the Linux man man page. Also added a further example and an extra option to the usage.
This commit is contained in:
committed by
Randell Dawson
parent
1045d8e99c
commit
108f59fe9b
@@ -1,32 +1,40 @@
|
|||||||
---
|
---
|
||||||
title: Bash Man
|
title: Bash Man
|
||||||
---
|
---
|
||||||
|
|
||||||
## Man
|
## Man
|
||||||
|
|
||||||
Man, the abbreviation of **man**ual, is a bash command used to display on-line reference manuals of the given command.
|
Man, the abbreviation of **man**ual, is a bash command used to display on-line reference manuals of the given command.
|
||||||
|
|
||||||
Man displays the relative man page (short for **man**ual **page**) of the given command.
|
Man displays the relative man page (short for **man**ual **page**) of the given command.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
man [options] [command]
|
man [options] [command]
|
||||||
```
|
```
|
||||||
|
|
||||||
Most used options:
|
Most used options:
|
||||||
|
|
||||||
* `-f`, print a short description of the given command
|
* `-f`, print a short description of the given command
|
||||||
* `-a`, display, in succession, all of the available intro manual pages contained within the manual
|
* `-a`, display, in succession, all of the available intro manual pages contained within the manual
|
||||||
|
* `-c`, reformat the source man page, used mostly when the page was formatted for a screen with a different number of columns
|
||||||
### Example
|
|
||||||
|
### Examples
|
||||||
Display the man page of ls:
|
|
||||||
|
#### Display the man page of ls
|
||||||
```bash
|
|
||||||
man ls
|
```bash
|
||||||
```
|
man ls
|
||||||
|
```
|
||||||
#### More information:
|
|
||||||
|
#### Display a short description of the shutdown command
|
||||||
* Wikipedia: https://en.wikipedia.org/wiki/Man_page
|
|
||||||
|
```bash
|
||||||
|
man -f shutdown
|
||||||
|
```
|
||||||
|
|
||||||
|
### More information:
|
||||||
|
|
||||||
|
* [Wikipedia](https://en.wikipedia.org/wiki/Man_page)
|
||||||
|
* [Linux](https://linux.die.net/man/1/man)
|
||||||
|
Reference in New Issue
Block a user