在终端中查看 Mac 序列号
不打开“关于本机”,直接读取序列号、机型标识和芯片信息。
运行下面的命令即可打印序列号,例如 Serial Number (system): C02XXXXXXXXX。
01命令
命令
$ system_profiler SPHardwareDataType | grep "Serial Number"02作用说明
system_profiler SPHardwareDataType 输出“关于本机”中的硬件概览,通过 grep 筛出序列号一行。去掉 grep 还能看到机型标识、芯片(Apple Silicon 或 Intel)、内存和系统版本,适合远程报修或核对保修信息。序列号不算机密,但不建议公开分享,因为客服可凭它查询维修状态。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- macOS system_profiler command reference依据: system_profiler SPHardwareDataType prints hardware details including model identifier and serial number.
- Find the model name and serial number of your Mac依据: Apple lists the places a Mac serial number appears, including About This Mac and the device surface.
最后验证: 2026-09-16 · 分类: 系统与设置