Last active
May 7, 2020 13:30
-
-
Save RuchirChawdhry/f45660d82aff3663613a8e0d063380e1 to your computer and use it in GitHub Desktop.
Lists all devices connected to USB on macOS
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
| system_profiler SPUSBDataType |
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
| ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment