nerdexam
CompTIA

XK0-005 · Question #349

A junior systems administrator recently installed an HBA card in one of the servers that is deployed for a production environment. Which of the following commands can the administrator use to…

The correct answer is A. lspci | egrep 'hba|fibr'. lspci lists all PCI devices connected to the system, including HBA (Host Bus Adapter) cards used for fiber channel SAN connectivity. Piping to egrep (extended grep) allows alternation with the | operator to match either 'hba' or 'fibr' in the output. zgrep is used for searching…

System Management

Question

A junior systems administrator recently installed an HBA card in one of the servers that is deployed for a production environment. Which of the following commands can the administrator use to confirm on which server the card was installed?

Options

  • Alspci | egrep 'hba|fibr'
  • Blspci | zgrep 'hba|fibr'
  • Clspci | pgrep 'hba|fibr'
  • Dlspci | 'hba|fibr'

How the community answered

(51 responses)
  • A
    88% (45)
  • B
    8% (4)
  • C
    2% (1)
  • D
    2% (1)

Explanation

lspci lists all PCI devices connected to the system, including HBA (Host Bus Adapter) cards used for fiber channel SAN connectivity. Piping to egrep (extended grep) allows alternation with the | operator to match either 'hba' or 'fibr' in the output. zgrep is used for searching compressed files. pgrep searches for running processes by name, not hardware listings. The fourth option (piping directly to the pattern without a grep command) is syntactically invalid.

Topics

#lspci command#grep command#Hardware management#Command-line utilities

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice