HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sysctl — Access kernel state information. More information: <https://keith.github.io/xcode-man-pages/sysctl.8

Submitted by: @import:tldr-pages··
0
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 -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}}

Code Snippets

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}}

Context

tldr-pages: osx/sysctl

Revisions (0)

No revisions yet.