ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 203 - XK0-005 discussion

Report
Export

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?

A.
lspci | egrep 'hba| fibr'
Answers
A.
lspci | egrep 'hba| fibr'
B.
lspci | zgrep 'hba | fibr'
Answers
B.
lspci | zgrep 'hba | fibr'
C.
lspci | pgrep 'hba| fibr'
Answers
C.
lspci | pgrep 'hba| fibr'
D.
lspci | 'hba | fibr'
Answers
D.
lspci | 'hba | fibr'
Suggested answer: A

Explanation:

The best command to use to confirm on which server the HBA card was installed is

A). lspci | egrep 'hba| fibr'. This command will list all the PCI devices on the server and filter the output for those that match the pattern 'hba' or 'fibr', which are likely to be related to the HBA card. The egrep command is a variant of grep that supports extended regular expressions, which allow the use of the '|' operator for alternation. The other commands are either invalid or will not produce the desired output. For example:

B) lspci | zgrep 'hba | fibr' will try to use zgrep, which is a command for searching compressed files, not standard output.

C) lspci | pgrep 'hba| fibr' will try to use pgrep, which is a command for finding processes by name or other attributes, not text patterns.

D) lspci | 'hba | fibr' will try to use 'hba | fibr' as a command, which is not valid and will cause an error.

asked 02/10/2024
Srecka Kovacevic
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first