If you're looking to gather detailed system information about a Mac, the Terminal is a powerful tool that allows you to quickly retrieve this data.
We’ll share a useful command that provides in-depth system details for a Mac, such as the current system software version and build number, kernel version, boot volume, boot mode, computer name, active user name, virtual memory info, SIP status, uptime, Mac model name and identifier, CPU chip, core count, memory, firmware version, OS loader version, serial number, hardware UUID, provisioning UDID, and activation lock status. You can also modify the command to include additional information related to networking, storage, bluetooth, and other relevant system data types.
While most Mac users likely rely on the About This Mac feature or the System Information app to get system details, there’s nothing wrong with those methods. However, some users may find it more convenient to retrieve comprehensive system information via the command line using Terminal. Terminal offers several advantages, including remote access capability, availability even if the GUI isn’t functioning properly, and generating output in a text format that's easy to scan.
Retrieving Mac System Information from Terminal with system_profiler
To begin, open the Terminal application, which is located in /Applications/Utilities/, or launch it using Spotlight. Once you're at the command prompt, run the following command to obtain extensive information about the Mac's hardware and system software:
system_profiler SPSoftwareDataType SPHardwareDataType
Press return and you'll see a well-organized output listing various system details for the Mac, similar to the example below:
$ 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-009847128944E Activation Lock Status: Enabled
As shown in this output, the Mac is an M1 MacBook Pro with 16GB RAM running macOS Monterey 12.1, booted normally with SIP enabled, and has been running continuously for over a month.
This level of detail might be sufficient for your needs, but if you want more system information, you can also retrieve details about networking or internal storage.
To view the full list of available data types for system_profiler, use the following command:
system_profiler -listDataTypes
Currently supported system_profiler data types include the following options: SPParallelATADataTypeSPUniversalAccessDataTypeSPSecureElementDataTypeSPApplicationsDataTypeSPAudioDataTypeSPBluetoothDataTypeSPCameraDataTypeSPCardReaderDataTypeSPiBridgeDataTypeSPDeveloperToolsDataTypeSPDiagnosticsDataTypeSPDisabledSoftwareDataTypeSPDiscBurningDataTypeSPEthernetDataTypeSPExtensionsDataTypeSPFibreChannelDataTypeSPFireWireDataTypeSPFirewallDataTypeSPFontsDataTypeSPFrameworksDataTypeSPDisplaysDataTypeSPHardwareDataTypeSPInstallHistoryDataTypeSPInternationalDataTypeSPLegacySoftwareDataTypeSPNetworkLocationDataTypeSPLogsDataTypeSPManagedClientDataTypeSPMemoryDataTypeSPNVMeDataTypeSPNetworkDataTypeSPPCIDataTypeSPParallelSCSIDataTypeSPPowerDataTypeSPPrefPaneDataTypeSPPrintersSoftwareDataTypeSPPrintersDataTypeSPConfigurationProfileDataTypeSPRawCameraDataTypeSPSASDataTypeSPSerialATADataTypeSPSPIDataTypeSPSmartCardsDataTypeSPSoftwareDataTypeSPStartupItemDataTypeSPStorageDataTypeSPSyncServicesDataTypeSPThunderboltDataTypeSPUSBDataTypeSPNetworkVolumeDataTypeSPWWANDataTypeSPAirPortDataType
You can simply add any desired data type to the end of the system_profiler command string and execute it to view specific information.
Previously, we've covered the system_profiler command, often piping its output into 'more' so users can scroll through all the system information. However, this method tends to display far more than many users typically need. The shorter version using ‘system_profiler SPSoftwareDataType SPHardwareDataType’ should fulfill the needs of most users seeking system details.
Additionally, if you're interested, you can retrieve system information like macOS version and kernel details using sw_vers and uname commands, or browse through the complete system information by scrolling through the system_profiler output. For CPU-specific information, you can also use sysctl from the command line.
Thanks to BlackMoonWolf for suggesting this tip!
The above is the detailed content of How to Find Comprehensive Mac System Info via Terminal. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

You’ve had your Mac for a few years, and you’re starting to feel the effects of your device aging—the battery doesn’t hold up as well as it used to. To avoid getting stuck with a dead Mac, you have no choice but to take your charger e

The Focus Modes functionality comes with several pre-set options such as Work, Driving, Sleep, and users are also free to create custom ones for any scenario imaginable. Should you find yourself not needing a multitude of Focus modes—whether because

If you trust Siri to accurately transcribe your speech into text and send it as a message, you can activate a setting that lets Siri send messages automatically from your iPhone without asking for confirmation first.With the confirmation feature enab

Some users of Mac computers running MacOS Sierra and MacOS High Sierra have reported issues when trying to log in to an Apple ID or iCloud via System Preferences, as well as problems accessing iCloud.com using Safari. In addition, Safari fails to loa

Have you ever received a long audio message on your iPhone and while listening, the screen turns off, interrupting the playback and forcing you to start over? It's pretty frustrating, isn't it?Next time you receive a lengthy voice message on your iPh

iOS 16 is now available for iPhone users, offering a solid update packed with practical features you're sure to enjoy.The most noticeable and exciting addition is the ability to personalize your lock screen. However, there are also plenty of smaller

In this blog post, we’ve gathered the 22 most significant breaches that happened back in 2017. All of the reports were conducted by Chris Vickery — a data breach hunter, who had partnered with MacKeeper to provide repor

Customizing your Mac by renaming it helps set it apart from other devices, especially when using AirDrop, and makes it easier to identify on a network.In macOS Ventura 13 and later versions, the method for changing the computer name has changed compa
