QuestionQ9

GNU and Unix Commands

Which of the following commands displays the manual page for command from section 1?

  • A man command(1)
  • B man command@1
  • C man 1 command
  • D man 1.command
  • E man -s 1 command
Explanation

man takes an optional section number before the page name, so man 1 command opens the section 1 page. This is the portable, POSIX-style form and the one this exam expects.

Note that man -s 1 command also works on many systems — it is the Solaris syntax, which both man-db (most Linux distributions) and BSD accept as an extension — but it is not the portable form. man command(1), man command@1 and man 1.command are not valid syntax.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!