macossystem-profiler

Obtaining a Mac's System Profiler data from shell


How can I retrieve the information shown in the Mac's System Profiler app programatically? I'm actually interested in the USB section if that matters.


Solution

  • Take a look at the system_profiler(8) command.