Last active
July 1, 2021 10:24
-
-
Save koonix/7fe9db0652d400381eff8561e86f9e28 to your computer and use it in GitHub Desktop.
Watch connected usb devices on linux.
This file contains hidden or 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
#!/bin/sh | |
# show a cleaned-up output of lsusb periodically. requires usbutils. | |
watch --differences --no-title --interval 0.5 "lsusb | grep -vi 'root hub$'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment