1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/system_profiler.md

17 lines
489 B
Markdown
Raw Normal View History

# system_profiler
> Report system hardware and software configuration.
2021-11-15 03:45:59 +08:00
> More information: <https://ss64.com/osx/system_profiler.html>.
- 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):
`system_profiler SPHardwareDataType`
- Print the system serial number:
2022-02-14 03:21:43 -08:00
`system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'`