Mac 基本信息查看
操作系統查看:(ProductVersion對應的即是操作系統版本)
more /System/Library/CoreServices/SystemVersion.plist
品牌查看:(百度搜索ProductName對應的的即是mac品牌)
more /System/Library/CoreServices/SystemVersion.plist
型號查看:(ProductName對應的的即是品牌型號)
more /System/Library/CoreServices/SystemVersion.plist
主板型號查看:(Model Name)
system_profiler SPHardwareDataType
CPU核數:
(物理)
sysctl hw.physicalcpu
(邏輯)
sysctl hw.logicalcpu
內存查看:(Memory)
system_profiler SPHardwareDataType
磁盤查看:
df -h
IP地址查看:
ifconfig