How to view devices connected to USB ports in Linux?
In a Linux system, you can use the following command to view devices connected to USB interfaces:
- List USB devices
lsusb
- Display a tree view of USB devices.
lsusb -t
- kernel message buffer
dmesg | grep USB
- Show the contents of the USB devices file located in the bus directory in the proc file system.
cat /proc/bus/usb/devices
The above command will display information such as manufacturer ID, product ID, and device type for connected USB devices.