From ab7d5e9134ae14f8ce01da2caedb2e23addf879f Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 12 Jul 2023 19:58:43 +0200 Subject: [PATCH] Add lsusb to find USB link speed --- pages/04.other/useful-commands/default.en.md | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/pages/04.other/useful-commands/default.en.md b/pages/04.other/useful-commands/default.en.md index 37ad47d..71bf852 100644 --- a/pages/04.other/useful-commands/default.en.md +++ b/pages/04.other/useful-commands/default.en.md @@ -59,3 +59,34 @@ Using `wget`, it's possible to download directories recursively from WebDAV. ```sh wget -r -nH -np --cut-dirs=1 --user={USERNAME} --password={PASSWORD} https://WEBDAVHOST/DIR/DIR ``` + +### Find USB speed in use + +First, the USB device you want to check has to be selected + +[shuser] + +```sh +lsusb +Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Bus 003 Device 003: ID 0c45:652f Microdia Backlit Gaming Keyboard +Bus 003 Device 002: ID 046d:c084 Logitech, Inc. G203 Gaming Mouse +Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +Bus 002 Device 002: ID 0781:55a3 SanDisk Corp. SanDisk 3.2Gen1 +Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub +Bus 001 Device 002: ID 2972:0047 FiiO Electronics Technology FiiO BTR5 +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub +``` + +[/shuser] + +Now, using the ID, the USB class used can be determined + +[shuser] + +```sh +lsusb -d 0781:55a3 -v | grep bcdUSB +bcdUSB 3.20 +``` + +[/shuser]