To get started, open the Terminal app in /Applications/Utilities/, or use Spotlight to launch Terminal. Once at the command line, enter the following command to get a wealth of information about your current Mac hardware and system software:
system_profiler SPSoftwareDataType SPHardwareDataType
Click Enter and you You'll see an easy-to-read output that lists a variety of handy system information about your Mac, like this:
$ system_profiler SPSoftwareDataType SPHardwareDataType
Software:
System Software Overview:
System Version: macOS 12.1 (21C52)
Kernel Version: Darwin 21.2.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: M1 MacBook Pro
User Name : Paul Horowitz (Paul)
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 35 days 17:14
Hardware:
Hardware Overview :
Model Name: MacBook Pro
Model Identifier: MacBookPro17,1
Chip: Apple M1
Total Number of Cores : 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 7429.61.2
OS Loader Version: 7429.61.2
Serial Number (system): C20JJ9PA2QRS
Hardware UUID: B571BB30-C8C9-DF83-312F-D8C265617512
Provisioning UDID: 000000042-0009847128944E
Activation Lock Status: Enabled
From As can be seen from this information, the Mac is an M1 MacBook Pro with 16GB of RAM, running macOS Monterey 12.1. It boots normally with SIP enabled, and the system has been up for a month.
This may be enough for your system information needs, but if you want to retrieve more data about your Mac, you can also find more system information available, perhaps about the network or internal storage.
Use the following command to view the complete list of data types available for system_profiler:
system_profiler -listDataTypes
Currently the system_profiler data type includes the following options:SPParallelATADataType
SPUniversalAccessDataType
SPSecureElementDataType
SPApplicationsDataType
SPAudioDataType
SPBluetoothDataType
SPCameraDataType
SPCardReaderDataType
SPiBridgeDataType
SPDeveloperToolsDataType
SPDiagnosticsDataType
SPDisabledSoftwareDataType
SPDiscBurningDataType
SPEthernetDataType
SPExtensionsDataType
SPFibreChannelDataType
SPFireWireDataType
SPFirewallDataType
SPFontsDataType
SPFrameworksDataType
SPDisplaysDataType
SPHardwareDataType
SPInstallHistoryDataType
SPInternationalDataType
SPLegacySoftwareDataType
SPNetworkLocationDataType
SPLogsDataType
SPManagedClientDataType
SPMemoryDataType
SPNVMeDataType
SPNetworkDataType
SPPCIDataType
SPParallelSCSIDataType
SPPowerDataType
SPPrefPaneDataType
SPPrintersSoftwareDataType
SPPrintersDataType
SPConfigurationProfileDataType
SPRawCameraDataType
SPSASDataType
SPSerialATADataType
SPSPIDataType
SPSmartCardsDataType
SPSoftwareDataType
SPStartupItemDataType
SPStorageDataType
SPSyncServicesDataType
SPThunderboltDataType
SPUSBDataType
SPNetworkVolumeDataType
SPWWANDataType
SPAirPortDataType
Simply append the data type to the system_profiler command string and execute it to get information about that specific data type.
The above is the detailed content of How to find comprehensive Mac system information through Terminal. For more information, please follow other related articles on the PHP Chinese website!