如何通过终端查找全面的 Mac 系统信息
admin
2023-07-31 14:10:19
0

使用 system_profiler 从终端检索 Mac 系统信息

要开始使用,请打开 /Applications/Utilities/ 中的终端应用程序,或者使用 Spotlight 启动终端。进入命令行后,输入以下命令以获取有关当前 Mac 硬件和系统软件的大量信息:extensive-mac-system-info-system-profiler-command-610x575-1extensive-mac-system-info-system-profiler-command-610x575-1

system_profiler SPSoftwareDataType SPHardwareDataType

点击回车,您将看到一个易于阅读的输出,其中列出了有关 Mac 的各种方便的系统信息,如下所示:

$ 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

从这些信息中可以看出,Mac 是一台 M1 MacBook Pro,具有 16GB RAM,运行 macOS Monterey 12.1 正常启动并启用了 SIP,系统正常运行时间长达一个月。

这可能足以满足您的系统信息需求,但如果您想检索有关 Mac 的更多数据,您也可以找到更多可用的系统信息,可能是关于网络或内部存储的信息。

使用以下命令查看 system_profiler 可用的数据类型的完整列表:

system_profiler -listDataTypes

目前 system_profiler 数据类型包括以下选项:
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

只需将数据类型附加到 system_profiler 命令字符串并执行它即可获取有关该特定数据类型的信息。

mac

相关内容

热门资讯

Windows 11 和 10... Windows 11/10 文件夹属性中缺少共享选项卡 – 已修复 1.检查共享选项卡是否可用 右键...
事件 ID 7034:如何通过... 点击进入:ChatGPT工具插件导航大全 服务控制管理器 (SCM) 负责管理系统上运行的服务的活动...
Hive OS LOLMine... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
Radmin VPN Wind... Radmin VPN 是一款免费且用户友好的软件,旨在牢固地连接计算机以创建一个有凝聚力的虚拟专用网...
Hive OS 部署 PXE ... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...
如何修复 Steam 内容文件... Steam 内容文件锁定是当您的 Steam 文件无法自行更新时出现的错误。解决此问题的最有效方法之...
如何在Instagram上扫描... 如何在Instagram上扫描名称标签/ QR? 总而言之,您可以通过大约四种不同的方法来扫描这些I...
在 Windows 11 中打... 什么是链路状态电源管理? 您可以在系统控制面板的电源选项中看到链接状态电源管理。它是 PCI Exp...
farols1.1.501.0... faro ls 1.1.501.0(64bit)可以卸载,是一款无需连接外部PC机或笔记本计算机即可...
Hive OS 新建飞行表的方... 目前不清退的交易所推荐: 1、全球第二大交易所OKX欧意 国区邀请链接: https://www.m...