2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/system_profiler
2020-11-18 12:36:25 +00:00

13 lines
438 B
Plaintext

# system_profiler
# Report system hardware and software configuration (Mac OS X)
# Display a full system profiler report which can be opened by
# 'System Profiler.app'.
system_profiler -xml > MyReport.spx
# Display an overview of system hardware (Model, CPU, Memory, Serial, etc).
system_profiler SPHardwareDataType
# Print the system's serial number.
system_profiler SPHardwareDataType|grep "Serial Number (system)" |awk '{print $4}'