Linux: find the vendor id and product id of a USB device
Show the VID:PID of a USB device with lsusb and usb-devices.
To write a udev rule or identify a USB device you need its vendor id (VID) and product id (PID). Two commands show them.
lsusb
usb-devices
lsusblists USB devices; each line containsID VID:PID(for exampleID 1234:abcd, VID before the colon, PID after).usb-devicesprints a more detailed description per device, including theVendorandProdIDfields.