Inspect PCI devices.
Show vendor and device names together with numeric IDs in brackets.
Which command is correct?
lspci -nn shows the human-readable device names and the numeric vendor and device IDs in brackets.
Detailed explanation
lspci -nIncorrect. -n displays numeric IDs but omits the descriptive names.
Incorrect. -n displays numeric IDs but omits the descriptive names.
lspci -nnCorrect. -nn includes both names and numeric IDs.
Correct. -nn includes both names and numeric IDs.
lspci -kIncorrect. -k focuses on kernel driver associations.
Incorrect. -k focuses on kernel driver associations.
lspci -tIncorrect. -t shows the bus tree.
Incorrect. -t shows the bus tree.
Try it yourself
An example you can run in a temporary verification environment.
lspci -nn | headExpected result
デバイス名と[8086:1234]のような数値ID(実際の値は機器により異なる)Key points
- -n requests numeric IDs
- -nn shows names and numeric IDs
- IDs help with driver investigation
Notes
- Environment: Linux / pciutils 3.x
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.