1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/sysctl.md

25 lines
460 B
Markdown
Raw Normal View History

# sysctl
> Access kernel state information.
2021-11-15 03:45:59 +08:00
> More information: <https://ss64.com/osx/sysctl.html>.
- Show all available variables and their values:
`sysctl -a`
- Show Apple model identifier:
`sysctl -n hw.model`
- Show CPU model:
`sysctl -n machdep.cpu.brand_string`
- Show available CPU features (MMX, SSE, SSE2, SSE3, AES, etc):
`sysctl -n machdep.cpu.features`
- Set a changeable kernel state variable:
`sysctl -w {{section.tunable}}={{value}}`