system_profiler

Created by Ethan Nay

Description

system_profiler reports on the hardware and software configuration of the system. It can generate plain text reports or XML reports which can be opened with System Information.app

CreatedTacticsTags
2023-07-12Discoverybash zsh

Paths

  • /usr/sbin/system_profiler

Use Cases

Listing the available datatypes

List all available sub-systems to get information from.

system_profiler -listDataTypes

Prints an overview of the hardware of the current machine, including its model name and serial number.

system_profiler SPHardwareDataType

Prints an overview of the software of the current machine, including the exact macOS version number.

system_profiler SPSoftwareDataType

Prints the currently active version of the Xcode developer tools and SDK.

system_profiler SPDeveloperToolsDataType

Prints power and battery information, including the current AC wattage and battery cycle count.

system_profiler SPPowerDataType

Detections

Resources