mac查看cpu等信息html
DannideMacBook-Pro:~ danni$ sysctl -n machdep.cpu.brand_string Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz # CPU核數 DannideMacBook-Pro:~ danni$ sysctl -n machdep.cpu.core_count 2 # CPU線程數,超線程(只有Intel有) DannideMacBook-Pro:~ danni$ sysctl -n machdep.cpu.thread_count 4 # 查看CPU所有 sysctl machdep.cpu # 顯卡、內存、硬盤等 DannideMacBook-Pro:~ danni$ system_profiler SPDisplaysDataType SPMemoryDataType SPStorageDataType | grep 'Graphics/Displays:\|Chipset Model:\|VRAM (Total):\|Resolution:\|Memory Slots:\|Size:\|Speed:\|Storage:\|Media Name:\|Medium Type:' Graphics/Displays: Chipset Model: Intel Iris Graphics 6100 Resolution: 2560 x 1600 Retina Memory Slots: Size: 4 GB Speed: 1867 MHz Size: 4 GB Speed: 1867 MHz Storage: Size: 250.14 GB (250,140,434,432 bytes) Media Name: APPLE SSD SM0256G Media Size: 250.14 GB (250,140,434,432 bytes) Medium Type: SSD Media Name: Apple 已壓縮爲 UDIF 只讀(zlib) Media Media Name: Apple 已壓縮爲 UDIF 只讀(zlib) Media Media Name: Apple 已壓縮爲 UDIF 只讀(zlib) Media Media Name: Apple 已壓縮爲 UDIF 只讀(zlib) Media
參考: https://www.cnblogs.com/guogangj/p/4020838.html CPU個數、CPU核心數、CPU線程數ide