To check USB devices connected to a Linux system, you can use several command-line tools. Here are some commonly used methods:
1. lsusb Command:
- This command lists all USB devices connected to your system. It provides basic information about each device, such as the vendor and product ID.
lsusb
- For more detailed information, you can use:
lsusb -v
(Note: Running lsusb -v may require superuser privileges for complete details.)
2. dmesg Command:
- The dmesg command prints kernel ring buffer messages. You can filter it to show only USB-related messages, which can be useful for diagnosing issues or seeing device connection events.
dmesg | grep -i usb
3. usb-devices Command:
- This command provides detailed information about USB devices in a more human-readable format. It shows information like the driver used, bus number, and device class.
usb-devices
4. lshw Command:
- The lshw command lists hardware information, including USB devices. You can filter the output to show only USB devices.
sudo lshw -classusb
5. udevadm Command:
- You can use udevadm to query the udev database for USB devices, which can provide detailed information about device properties.
udevadm info--query=all --name=/dev/bus/usb/001/001
Replace /dev/bus/usb/001/001 with the appropriate path to your USB device.
6. GUI Tools:
- If you prefer a graphical interface, tools like HardInfo or GNOME Disks can provide information about USB devices.
By using these tools, you can gather comprehensive information about the USB devices connected to your Linux system, which can help with troubleshooting or device management.