tldr/pages/osx/system_profiler.md

21 lines
703 B
Markdown
Raw Normal View History

# system_profiler
> Report system hardware and software configuration.
2021-11-14 19:45:59 +00:00
> More information: <https://ss64.com/osx/system_profiler.html>.
- Display a report with specific details level (mini [no personal information], basic or full):
`system_profiler -detailLevel {{level}}`
- Display a full system profiler report which can be opened by `System Profiler.app`:
`system_profiler -xml > MyReport.spx`
- Display a hardware overview (Model, CPU, Memory, Serial, etc) and software data (System, Kernel, Name, Uptime, etc):
`system_profiler SPHardwareDataType SPSoftwareDataType`
- Print the system serial number:
2022-02-14 11:21:43 +00:00
`system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'`