Get Mac system details from the command line

Question

From the Terminal, or an SSH session, how can I view the system details of my Mac?

Environment

  • macOS

Answer

Run one of these commands:

  • system_profiler SPHardwareDataType
  • system_profiler | less


Selected system_profiler options include:

  • Command usagesystem_profiler -usage
  • Find detail optionssystem_profiler -listDataTypes:
    • Memorysystem_profiler SPMemoryDataType
    • Networksystem_profiler SPNetworkDataType
    • Hard Drivessystem_profiler SPStorageDataType

Details

Article ID: 1485
Created
Tue 5/26/20 6:00 PM
Modified
Wed 8/12/20 12:54 PM