👏

[mac]ターミナルからmacの情報を表示する

2024/01/20に公開

はじめに

記事を書くときに↓のようなmacの動作環境をターミナルから取得するときの備忘録

動作環境

macOS 14.2.1 (23C71)

手順

$ system_profiler SP{}DataType

上記の{}に適当な文字列を入れることで確認できる
対応表

  • ハードウェア: Hardware
  • ソフトウェア:Software
  • メモリ:Memory
  • GPU: Displays

↓例

$ system_profiler SPSoftwareDataType

Software:

    System Software Overview:

      System Version: macOS 14.2.1 (23C71)
      Kernel Version: Darwin 23.2.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: 
      User Name:
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 116時間 46
GitHubで編集を提案

Discussion