2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-11 01:10:31 +00:00
cheat.sheets/sheets/sysctl
2020-02-02 19:37:49 +00:00

13 lines
478 B
Plaintext

# List all kernel keys (parameters) and their values.
sysctl [--all|-a]
# As above, but show only specified keys and their values.
sysctl [KEY_1 [KEY_2] ...]
# As above, but instead output only the values.
sysctl [--values|-n] [KEY_1 [KEY_2] ...]
# Not nearly as useful, but alternatively, output only the key names.
sysctl [--names|-N] [KEY_1 [KEY_2] ...]
# Assign one or more kernel keys a new value; usually requires root access.
sysctl [KEY_1=VALUE_1 [KEY_2=VALUE_2] ...]