Forrest logo
tool overview
On this page you find all important commands for the CLI tool system_profiler. If the command you are looking for is missing please ask our AI.

system_profiler

The system_profiler is a command line tool used in macOS to gather and display detailed information about the hardware and software configuration of a Mac system. It provides a comprehensive overview of various aspects of the system, including the hardware, network settings, software, storage, and more.

When executed in the Terminal, system_profiler presents its outputs in a structured manner, making it easy to read and navigate. It is often used by system administrators, technicians, and individuals who require detailed information about their Mac's specifications.

The tool provides information such as the model and processor of the Mac, the amount of installed memory, the active operating system version, network configurations, battery details, connected peripherals, installed software applications, and various other hardware and software components.

System_profiler offers a variety of options and flags that can be used to target specific aspects of the system, further refining the output. For example, using the '-json' flag, it can generate output in JSON format, which allows it to be easily parsed and used in scripting or automation workflows.

Overall, system_profiler is a powerful and versatile utility that provides Mac users with comprehensive and detailed information about their system's configuration, aiding in troubleshooting, system analysis, and understanding the capabilities of their Mac.

List of commands for system_profiler:

  • system_profiler:tldr:4e6a2 system_profiler: Display a full system profiler report which can be opened by System Profiler.app.
    $ system_profiler -xml > MyReport.spx
    try on your machine
    explain this command
  • system_profiler:tldr:a2de5 system_profiler: Print the system serial number.
    $ system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'
    try on your machine
    explain this command
  • system_profiler:tldr:d9193 system_profiler: Display a hardware overview (Model, CPU, Memory, Serial, etc).
    $ system_profiler SPHardwareDataType
    try on your machine
    explain this command
tool overview