Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
osx/system_profiler Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# system_profiler
> Report system hardware and software configuration.
> More information: <https://keith.github.io/xcode-man-pages/system_profiler.8.html>.
- Display a report with specific details level (mini [no personal information], basic or full):
`system_profiler -detailLevel {{level}}`
- Display a full system profiler report which can be opened by `System Profiler.app`:
`system_profiler -xml > MyReport.spx`
- Display a hardware overview (Model, CPU, Memory, Serial, etc) and software data (System, Kernel, Name, Uptime, etc):
`system_profiler SPHardwareDataType SPSoftwareDataType`
- Print the system serial number:
`system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'`