From cb863ec73c2d318003b97ef26bb41e3887d71fa8 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Sun, 2 Feb 2020 19:37:49 +0000 Subject: [PATCH] Add `sysctl` file with a few examples --- sheets/sysctl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sheets/sysctl diff --git a/sheets/sysctl b/sheets/sysctl new file mode 100644 index 0000000..77764a8 --- /dev/null +++ b/sheets/sysctl @@ -0,0 +1,12 @@ +# 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] ...]