Skip to content

Instantly share code, notes, and snippets.

@eu90h
Created February 13, 2024 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eu90h/1b9bd1eaa72137389b0f7f08b322feea to your computer and use it in GitHub Desktop.
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`)
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