1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MacのCPUコア数をコマンドラインから取得する方法

Posted at

MacのCPUコア数をコマンドラインから取得する方法

$ system_profiler SPHardwareDataType | awk '/Total Number of Cores/ { print $NF }'
2

その他情報

$ system_profiler SPHardwareDataType
Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro14,1
      Processor Name: Intel Core i5
      Processor Speed: 2.3 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 4 MB
      Memory: 8 GB
      Boot ROM Version: 184.0.0.0.0
      SMC Version (system): 2.43f6
      Serial Number (system): C02W70QBHV22
      Hardware UUID: 8D8D4DA4-17B0-5B0A-9A47-A452EC690F38

参考

Macでシステム情報を確認する方法
About System Information on your Mac

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?