tldr/pages.zh/osx/system_profiler.md

17 lines
469 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# system_profiler
> 报告系统硬件和软件配置。
> 更多信息:<https://keith.github.io/xcode-man-pages/system_profiler.8.html>.
- 显示可由 System Profiler.app 打开的完整系统资源报告:
`system_profiler -xml > MyReport.spx`
- 显示硬件概述型号、CPU、内存、串行等
`system_profiler SPHardwareDataType`
- 打印系统序列号:
`system_profiler SPHardwareDataType|grep "Serial Number (system)" |awk '{print $4}'`