LPIC-1 Exam 101 Practice Questions

Linux Professional Institute LPIC-1 Exam 101 (101-500) exam preparation

LPIC-1 Exam 101 practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 90 minutes.

LPIC-1 Exam 101 free question 1 / 10 · Domain 1: System Architecture

A PCI wireless LAN card shows up in the output of lspci, but it cannot communicate. You want to see which kernel driver is currently handling the card and which kernel modules could handle it. Which option do you add to lspci?

  1. lspci -k
  2. lspci -m
  3. lspci -n
  4. lspci -x
Show the answer and explanation

Answer: A

Why this is correct
In lspci(8), the -k option makes the listing show, for every device, the kernel driver that is currently handling it and the kernel modules that are able to handle it. A name in the plain list only means the device was found on the bus. To actually work, the device needs a module bound to it as its driver. If the -k output has no driver line for the wireless card, the first suspect is that the module has not been loaded.

Why the other options are wrong
"lspci -m" … The m is easy to read as 'module', but -m selects a backward-compatible, machine-readable output format meant for scripts to parse. It does not add any driver line to the listing.
"lspci -n" … -n shows the vendor and device codes as raw numbers instead of resolving them to names. That helps when you need to look up an ID, but it does not tell you which driver is bound to the device.
"lspci -x" … -x dumps the standard part of the PCI configuration space (the first 64 bytes, for example) as hexadecimal. That is raw hardware data and contains no driver name.

Where to look next
To inspect a single device, combine -k with -s and give the bus address. The man page also says that adding -v to the normal output includes what -k would show. Hardware-listing commands can show less when run as an ordinary user, so run them as root or with sudo.

Go to the LPIC-1 Exam 101 practice app (10 free questions; purchase unlocks all questions)

See the full practice set