nerdexam
LPI

010-150 · Question #3

Which command line can be used to search help files that mention the word "copy"?

The correct answer is A. man -k copy. The man -k command performs a keyword search across all manual page names and short descriptions, allowing users to discover relevant commands by topic.

Exercise Leadership and Client Education

Question

Which command line can be used to search help files that mention the word "copy"?

Options

  • Aman -k copy
  • Bwhatis copy
  • Cman copy
  • Dcopy help
  • Ecopy -help

How the community answered

(43 responses)
  • A
    84% (36)
  • B
    9% (4)
  • C
    2% (1)
  • D
    5% (2)

Why each option

The man -k command performs a keyword search across all manual page names and short descriptions, allowing users to discover relevant commands by topic.

Aman -k copyCorrect

man -k performs a keyword search (equivalent to the apropos command) against the whatis database, returning all man page entries whose name or short description contains the specified word. Running man -k copy will list every command and function whose manual page synopsis mentions 'copy', making it ideal for discovering commands when you know the concept but not the exact command name.

Bwhatis copy

whatis looks up the exact command name provided and returns its one-line description - it does not search across all man pages for a keyword.

Cman copy

man copy attempts to open the manual page for a command literally named 'copy', which does not exist as a standard Linux command.

Dcopy help

'copy help' is not a valid Linux command syntax; 'copy' is not a standard Linux utility.

Ecopy -help

'copy -help' is similarly invalid because 'copy' is not a standard Linux command.

Concept tested: Searching man pages by keyword with man -k

Source: https://man7.org/linux/man-pages/man1/man.1.html

Topics

#man command#help system#Linux CLI#keyword search

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice