Benches macOS

3

sudo lshw option for MBP OSX 10.6.2

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I tried sudo lshw on my new Macbook Pro running Snow Leopard to get a hardware list form the command prompt. Apparently the command does not work on the Mac. As I used it before on Ubuntu I thought it would be available on the Mac as well. What equivalent command can list hardware for my Mac from the terminal?

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    rhand

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Found sysctl -A . Also tried /usr/sbin/system_profiler. Both give very long lists I must say, but they do show a lot of data.

    Message was edited by: rhand

    Message was edited by: rhand

  2. 0

    Antonio Rocco

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi

    This is the Server Forum. You should really post here:

    http://discussions.apple.com/category.jspa?categoryID=263

    or if it's the command line you specifically want:

    http://discussions.apple.com/forum.jspa?forumID=735

    For what you wanted to do system_profiler should be enough? From the command line (either in single user boot - command+s at startup or normally) issue: "system_profiler SPHardwareDataType" If you want to view RAM information: "system_profiler SPMemoryDataType" You don't need to type the quotes.

    To view the list of options the utility has: "system_profiler -listDataTypes" Pick one form the list that suits.

    Tony

  3. 0

    rhand

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks. Will do that the next time..