Name
system_profiler
Synopsis
system_profiler [-usage] | [-listDataTypes] system_profiler [-xml] [dataType1...dataTypeN] system_profiler [-xml] [-detailLevel-n]
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.
Options
The following options are available:
-
-detailLevel-n Specify the level of detail for the report with
nbeing a number of:-
-2 Brief overview data only
-
-1 Short data report
-
0 Standard data report
-
1 Extended data report
-
-
-listDataTypes List the available datatypes for the system.
-
-usage Display usage information and examples.
-
-xml Generate a report in XML format. The file will have a
.spxfile extension, which can be opened with the System Profiler.
Examples
Generate the standard System Profiler report and display it in the Terminal:
$ system_profilerShow a listing of the available datatypes:
$ system_profiler -listDataTypesGenerate a report containing information about a specific datatype:
$system_profilerdataTypeName
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.spxBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access