system_profiler [-usage] | [-listDataTypes] system_profiler [-xml] [
dataTypeN] system_profiler [-xml] [-detailLevel
Reports on the hardware and software of the system. Performs the same function as the System Profiler utility (/Applications/Utilities), except from the command line. This command replaces the AppleSystemProfiler command from Mac OS X 10.2 (Jaguar), located in /usr/sbin.
The following options are available:
Specify the level of detail for the report with
level being one of:
Basic hardware and network information
All available information
List the available datatypes for the system.
Display usage information and examples.
Generate a report in XML format. The file will have a .spx file extension, which can be opened with the System Profiler.
Generate the standard System Profiler report and display it in the Terminal:
Show a listing of the available datatypes:
Generate a report containing information about a specific datatype:
Generate an XML file containing a report that can be opened by the System Profiler utility and save it to the Desktop:
system_profiler -xml > ~/Desktop/SysReport.spx