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:

  1. List USB devices
lsusb
  1. Display a tree view of USB devices.
lsusb -t
  1. kernel message buffer
dmesg | grep USB
  1. 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.

bannerAds