【问题标题】:How can I get the serial number of the Mac, using shell or AppleScript [duplicate]如何使用 shell 或 AppleScript 获取 Mac 的序列号 [重复]
【发布时间】:2023-03-05 05:58:01
【问题描述】:

如何使用 shell 或 AppleScript 获取 Mac 的序列号

【问题讨论】:

  • 请将屏幕截图添加为图片,而不是链接。此外,您自己尝试过什么?

标签: macos shell applescript


【解决方案1】:

在 shell 中你可以使用ioreg:

ioreg -l | grep IOPlatformSerialNumber

system_profiler:

system_profiler SPHardwareDataType | grep Serial

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-02
    • 1970-01-01
    • 1970-01-01
    • 2019-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多