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