nerdexam
CompTIACompTIA

XK0-005 · Question #349

XK0-005 Question #349: Real Exam Question with Answer & Explanation

The correct answer is A: lspci | egrep 'hba|fibr'. {"question_number": 4, "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 th

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'

Explanation

{"question_number": 4, "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.", "generated_by": "claude-sonnet", "llm_judge_score": 5}

Topics

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

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions