HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

man — Format and display manual pages. See also: `whatis`, `apropos`. More information: <https://manned.or

Submitted by: @import:tldr-pages··
0
Viewed 0 times
mancommandformatandpagesclimanualdisplay

Problem

How to use the man command: Format and display manual pages. See also: whatis, apropos. More information: <https://manned.org/man>.

Solution

man — Format and display manual pages. See also: whatis, apropos. More information: <https://manned.org/man>.

Display the man page for a command:
man {{command}}


Open the man page for a command in a browser (=browser_name can be omitted if $BROWSER is set):
man {{[-H|--html=]}}{{browser_name}} {{command}}


Display the man page for a command from section 7:
man 7 {{command}}


List all available sections for a command:
man {{[-f|--whatis]}} {{command}}


Display the path searched for manpages:
man {{[-w|--path]}}


Display the location of a manpage rather than the manpage itself:
man {{[-w|--where]}} {{command}}


Display the man page using a specific locale:
man {{[-L|--locale]}} {{locale}} {{command}}


Search for manpages containing a search string:
man {{[-k|--apropos]}} "{{search_string}}"

Code Snippets

Display the man page for a command

man {{command}}

Open the man page for a command in a browser (`=browser_name` can be omitted if `$BROWSER` is set)

man {{[-H|--html=]}}{{browser_name}} {{command}}

Display the man page for a command from section 7

man 7 {{command}}

List all available sections for a command

man {{[-f|--whatis]}} {{command}}

Display the path searched for manpages

man {{[-w|--path]}}

Context

tldr-pages: common/man

Revisions (0)

No revisions yet.