Files
tldr/pages.zh/osx/system_profiler.md

20 lines
711 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# system_profiler
> 报告系统硬件和软件配置。
> 更多信息:<https://keith.github.io/xcode-man-pages/system_profiler.8.html>。
- 显示具有特定详细程度的报告(迷你 [不包含个人信息]、基础或完整):
`system_profiler -detailLevel {{level}}`
- 显示完整的系统分析报告,可以通过 `System Profiler.app` 打开:
`system_profiler -xml > MyReport.spx`
- 显示硬件概述型号、CPU、内存、序列号等和软件数据系统、内核、名称、运行时间等
`system_profiler SPHardwareDataType SPSoftwareDataType`
- 打印系统序列号:
`system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'`