PROPHET/OS
NAME
usb: every port of every USB controller, one row each
SYNOPSIS
usb [--tui]
DESCRIPTION
Every port of every USB controller, one row each: whether it has power, its link state, its speed, and the device on it with its class and its vendor and product. A device behind a hub on that port stands in a row of its own below it.
The colour says the state: green a device the driver took in, red one that was pulled, yellow a port with a device connected that nobody took in, grey a port without power. A grey port never reports what is plugged into it; the driver switches every one on at the start.
Link is the link state as the controller counts it (xHCI: 0 running, 5 receiving detect, 7 polling). --tui keeps the table live; plugging a device in or out changes it while you look.
EXAMPLE
$ usb Port Power Link Speed Device Class ID