system_profiler Command Examples

Report system hardware and software configuration. More information: https://keith.github.io/xcode-man-pages/system_profiler.8.html.

system_profiler -detailLevel {{level}}

system_profiler -xml > MyReport.spx

system_profiler SPHardwareDataType SPSoftwareDataType

system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'