« USB Toolbox | Main | Raspberry Pi Use Case: Subversion & Airplay »
Thursday
Oct042012

lsusb on OS X

I’ve starting down the long dark path of embedded USB design. It’s been tough, but there are some good examples out there.

But back to the subject of this post. I find it annoying to have to go to About This Mac every time I want to see what USB devices are connected. I would like an equivelent of the Linux command line tool lsusb. Then I read somewhere the OS X command system_profiler SPUSBDataType gives you the same data that you will find in About This Mac. To make it easy to remember, I added this line to my bash profile (~/.profile):

alias lsusb='system_profiler SPUSBDataType'

Now, all I have to do is type lsusb in the terminal to list all the USB devices connected to my computer. I’m sure it is possible to install the actual lsusb command on my computer, but this works fine for me.

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (43)

References allow you to track sources for this article, as well as articles that were written in response to this article.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>