What does man do?

display the on-line manual page for a command.

▸ Explain your own man command →

man examples, explained

$ man ls

  • mandisplay the on-line manual page for a command
  • lsan argument passed to the command

$ man -k compress

  • mandisplay the on-line manual page for a command
  • -ksearch the short descriptions of all pages (apropos)
  • compressan argument passed to the command

$ man 5 crontab

  • mandisplay the on-line manual page for a command
  • 5an argument passed to the command
  • crontaban argument passed to the command

$ man -f printf

  • mandisplay the on-line manual page for a command
  • -fshow the one-line description of a page (whatis)
  • printfan argument passed to the command

man flags & options

-ksearch the short descriptions of all pages (apropos)
-fshow the one-line description of a page (whatis)
-ashow all matching manual pages, not just the first
-wprint the file location of the manual page instead of showing it
-Ksearch for a string in the full text of all pages
-Mlook for pages in this manual-path directory
-Puse this program as the pager

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.