summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2021-03-08 08:45:34 +0000
committerAndreas Kling <kling@serenityos.org>2021-03-08 09:48:34 +0100
commit69b98f7d326ce12157be70735a79a4ed487d871b (patch)
treee9b24597475aec81a11451032080558641bfc28f /Base
parentfb68aa1480d40eaa8326b22d0add01ccee6ec470 (diff)
downloadserenity-69b98f7d326ce12157be70735a79a4ed487d871b.zip
Base: Add sysctl man page
Diffstat (limited to 'Base')
-rw-r--r--Base/usr/share/man/man8/sysctl.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/Base/usr/share/man/man8/sysctl.md b/Base/usr/share/man/man8/sysctl.md
new file mode 100644
index 0000000000..c1f2bca855
--- /dev/null
+++ b/Base/usr/share/man/man8/sysctl.md
@@ -0,0 +1,50 @@
+## Name
+
+sysctl - configure kernel parameters at runtime
+
+## Synopsis
+
+```**sh
+# sysctl [-a] [variable[=value]]
+```
+
+## Description
+
+sysctl is a utility for managing kernel configuration parameters at runtime.
+This requires root privileges, and can crash your system.
+Available parameters are listed under /proc/sys/.
+
+## Options
+
+* `-a`: Display all kernel parameters and associated values
+
+## Arguments
+
+* `variable`: Retrieve the specified parameter
+* `variable=value`: Set the specified parameter to the specified value
+
+## Files
+
+* `/proc/sys` - source of kernel parameters
+
+## Examples
+
+View all parameters:
+
+```sh
+# sysctl -a
+```
+
+View `ubsan_is_deadly` parameter:
+
+```sh
+# sysctl ubsan_is_deadly
+ubsan_is_deadly = 1
+```
+
+Set `ubsan_is_deadly` parameter to zero (disabled):
+
+```sh
+# sysctl ubsan_is_deadly=0
+ubsan_is_deadly = 1 -> 0
+```