2025-03-14 21:59:59 -06:00
|
|
|
# man
|
|
|
|
|
|
|
|
|
|
> Format and display manual pages.
|
|
|
|
|
> More information: <https://manned.org/man>.
|
|
|
|
|
|
|
|
|
|
- Display the man page for a command:
|
|
|
|
|
|
|
|
|
|
`man {{command}}`
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-H|--html=]}}{{browser_name}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the man page for a command from section 7:
|
|
|
|
|
|
|
|
|
|
`man {{7}} {{command}}`
|
|
|
|
|
|
|
|
|
|
- List all available sections for a command:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-f|--whatis]}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the path searched for manpages:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-w|--path]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the location of a manpage rather than the manpage itself:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-w|--where]}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the man page using a specific locale:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-L|--locale]}} {{locale}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Search for manpages containing a search string:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`man {{[-k|--apropos]}} "{{search_string}}"`
|