Created
February 13, 2024 14:37
-
-
Save eu90h/1b9bd1eaa72137389b0f7f08b322feea to your computer and use it in GitHub Desktop.
A fish shell script to list USB devices. (Yes, you can just use `lsusb`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in (ls /sys/bus/usb/devices/*/product) | |
echo $f && cat $f | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment