Copied to clipboard

man

The man command line is used to display manual pages for commands on Linux. With man, users can learn about command usage, parameters, options, and other information.

Example

  • Display the manual page for the ls command: man ls
  • Display the NAME section for the ls command: man -f ls
  • Display all manual pages related to ls: man -k ls
  • Display the DESCRIPTION section for the ls command: man -d ls
  • Display the OPTIONS section for the ls command: man -h ls
  • Equivalent to the whatis command: man -f ls
  • Display the path of the manual page: man -w ls

Note: Here, the ls command is just an example and can be replaced with any other command.