What command would you use to view information about USB devices connected to a Linux system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command used to view information about USB devices connected to a Linux system is "lsusb." This command specifically lists all USB devices currently recognized by the system. It provides details such as the bus number, device number, vendor ID, product ID, and the devices’ descriptive information. This makes it an essential tool for troubleshooting and managing USB hardware.

Other commands may provide information about the system's hardware, but they are not focused exclusively on USB devices. For example, "lspci" is used to list PCI devices, which includes graphics cards, network cards, and other internal hardware components. "lsblk" provides information about block devices, such as hard drives and USB storage devices, but not specifically USB peripherals like keyboards or mice. "dmesg" displays messages from the kernel ring buffer, which may include information about devices when they are connected or disconnected, but it does not provide a structured overview of USB devices like "lsusb" does. Thus, for the specific task of viewing detailed information about USB devices, "lsusb" is the most appropriate command to use.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy