snippetbashTip
sysctl — Access kernel state information. More information: <https://keith.github.io/xcode-man-pages/sysctl.8
Viewed 0 times
commandaccessstatecliinformationsysctlmorekernel
macos
Problem
How to use the
sysctl command: Access kernel state information. More information: <https://keith.github.io/xcode-man-pages/sysctl.8.html>.Solution
sysctl — Access kernel state information. More information: <https://keith.github.io/xcode-man-pages/sysctl.8.html>.Show all available variables and their values:
sysctl -aShow Apple model identifier:
sysctl -n hw.modelShow CPU model:
sysctl -n machdep.cpu.brand_stringShow available CPU features (MMX, SSE, SSE2, SSE3, AES, etc):
sysctl -n machdep.cpu.featuresSet a changeable kernel state variable:
sysctl -w {{section.tunable}}={{value}}Code Snippets
Show all available variables and their values
sysctl -aShow Apple model identifier
sysctl -n hw.modelShow CPU model
sysctl -n machdep.cpu.brand_stringShow available CPU features (MMX, SSE, SSE2, SSE3, AES, etc)
sysctl -n machdep.cpu.featuresSet a changeable kernel state variable
sysctl -w {{section.tunable}}={{value}}Context
tldr-pages: osx/sysctl
Revisions (0)
No revisions yet.