system_profiler
Report system hardware and software configuration. 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:
system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.