Physical slots and devices attached

How do I find the physical slots in my laptop and devices attached to them. For e.g. my laptop has 4 external usb slots and when I attach an external hard disk to one of the slots, are there any commands to indicate which usb slot has which devices attached?

I am assuming some slots are internal for e.g. the web cam is shown as a usb device so it is probably attached to a slot that is not visible externally.

Afaik, usb-devices shows you the attached devices and their corresponding ports.
Sadly, I don’t know how to list the ports themselves.
You might also want to take a look at lsusb and udevadm.

1 Like