1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 05:22:11 +02:00
tldr/pages/osx/system_profiler.md
Teodor Muraru 92205fee9f
system_profiler: update page (#10477)
* system_profiler: update page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 20:09:29 +05:30

703 B

system_profiler

Report system hardware and software configuration. 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:

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