man: use long options in examples (#8216)

* man: use long options in examples
* man: move long options to /linux/
This commit is contained in:
kai
2022-07-18 21:15:19 -05:00
committed by GitHub
parent 7d6bd2e6cc
commit 31325d9bd8

32
pages/linux/man.md Normal file
View File

@@ -0,0 +1,32 @@
# man
> Format and display manual pages.
> More information: <https://www.man7.org/linux/man-pages/man1/man.1.html>.
- Display the man page for a command:
`man {{command}}`
- Display the man page for a command from section 7:
`man {{7}} {{command}}`
- List all available sections for a command:
`man --whatis {{command}}`
- Display the path searched for manpages:
`man --path`
- Display the location of a manpage rather than the manpage itself:
`man --where {{command}}`
- Display the man page using a specific locale:
`man {{command}} --locale={{locale}}`
- Search for manpages containing a search string:
`man --apropos "{{search_string}}"`