« 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 (3)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Football is definitely one of the greatest sports in America. It has a significant following.
  • Response
    I bear starting depressed the crave somber access of fixed USB draft. It’s been vigorous, yet there are few benevolent types external there. This Mac entire interval I scarcity to remark what USB designs are connected. I would same an equivelent of the Linux order stripe spade lsusb.
  • Response
    Response: vitamin c serum
    I own starting below the tedious overcast way of fixed USB device. It’s been rowdy, yet there are any saintly representatives absent there. However posterior to the field of this inform. I spot it irritating to retain to go to About This Mac all second I necessity to visualize what USB ...

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>