usb-devices(1)
โจ usb-devices(1) โจ Linux USB Utilities ๐
๐ NAME
usb-devices โ print USB device details ๐
๐ง SYNOPSIS
usb-devices
๐ธ DESCRIPTION
okay so usb-devices is a shell script ๐ that lets you peek at the USB buses in your system and every device plugged into them ๐โจ
its output is basically a copy of the usb/devices file ๐ which you can normally find under /proc/bus (if usbfs is mounted) or under /sys/kernel/debug (if debugfs is mounted there). the script is mainly for when that file is nowhere to be found ๐
bestie, the big difference: this script only shows active interfaces (the ones marked with a "*" in the usb/devices file) plus their endpoints ๐ฆ
ngl, sorting can be different and the output format can look different too, so don't be surprised if it doesn't match the file exactly ๐
๐ RETURN VALUE
if sysfs is not mounted, you get a non-zero exit code ๐ญ so no sysfs, no vibes.
๐ FILES
/sys/bus/usb/devices/usb*- this is the part of the sysfs tree the script walks through to put together everything it prints ๐
/proc/bus/usb/devices- where the
usb/devicesfile normally lives on Linux kernels before 2.6.31, if usbfs is mounted ๐
- where the
/sys/kernel/debug/usb/devices- where the
usb/devicesfile normally lives on Linux kernel 2.6.31 and later, if debugfs is mounted ๐
- where the
๐ฆ SEE ALSO
lsusb(8), usbview(8). go check those out, they're iconic ๐ฅ
๐ซถ AUTHORS
Greg Kroah-Hartman <greg@kroah.com>
Randy Dunlap <rdunlap@xenotime.net>
Frans Pop <elendil@planet.nl>
bestie, this page is from usbutils ๐ dated 23 June 2009 ๐ and it's a usb-devices(1) page, so you're all set ๐ธ love you, mwah! ๐โจ
๐ฆ where this page comes from
- alpine 3.22: usbutils-doc 018-r0 ยท GPL-2.0-or-later
- alpine 3.23: usbutils-doc 019-r0 ยท GPL-2.0-or-later
- alpine 3.24: usbutils-doc 019-r0 ยท GPL-2.0-or-later
- arch rolling: usbutils 019-1
- arch rolling: usbutils 020-1 ยท GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.1-or-later AND MIT
- centos-stream 10: usbutils 018-1.el10 ยท GPL-2.0-or-later
- debian trixie: usbutils 1:018-2 ยท GPL-2.0-only OR GPL-3.0-only
- fedora 43: usbutils 018-4.fc43 ยท GPL-2.0-or-later
- fedora 44: usbutils 019-2.fc44 ยท GPL-2.0-or-later
- nixos 26.05: usbutils 019
- ubuntu questing: usbutils 1:018-2 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: usbutils 1:019-1 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: usbutils 1:019-1 ยท GPL-2.0-only OR GPL-3.0-only
- ๐ the page's license: GPL-2.0-only
- Copyright (c) 2004 Greg Kroah-Hartman <greg@kroah.com>
- Copyright (c) 2004 Randy Dunlap <rdunlap@xenotime.net>
- Copyright (c) 2004 Frans Pop <elendil@planet.nl>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms