Is it possible to detect with confidence via command line that the USB cable is damaged? I tried to connect my printer and it's not printing with this cable, I guess that the culprit is the USB cable.
The only command I know is
lsusb but I don't know how to use it to detect this type of information.
I have only one cable now (and USB mouse and keyboard, it they could help) and I'd like to test if the cable is damaged. Is there a procedure I can do and say after it: "The USB cable should go to garbage"