CompTIA Linux+ (XK0-005) — Question 174

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?

Answer options

Correct answer: A

Explanation

The correct command, A, uses egrep, which is appropriate for filtering the output of lspci to show lines containing 'hba' or 'fibr'. Options B and C use zgrep and pgrep, respectively, which are not suitable for this context as they do not process lspci output correctly. Option D lacks the necessary command to filter the output and is thus invalid.