snippetbashTip
system_profiler — Report system hardware and software configuration. More information: <https://keith.github.io/xcode-
Viewed 0 times
reportcommandsystem_profilerhardwareandsoftwareclisystem
macos
Problem
How to use the
system_profiler command: Report system hardware and software configuration. More information: <https://keith.github.io/xcode-man-pages/system_profiler.8.html>.Solution
system_profiler — Report system hardware and software configuration. More information: <https://keith.github.io/xcode-man-pages/system_profiler.8.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.spxDisplay a hardware overview (Model, CPU, Memory, Serial, etc) and software data (System, Kernel, Name, Uptime, etc):
system_profiler SPHardwareDataType SPSoftwareDataTypePrint the system serial number:
system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'Code Snippets
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.spxDisplay a hardware overview (Model, CPU, Memory, Serial, etc) and software data (System, Kernel, Name, Uptime, etc)
system_profiler SPHardwareDataType SPSoftwareDataTypePrint the system serial number
system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'Context
tldr-pages: osx/system_profiler
Revisions (0)
No revisions yet.