1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:34:59 +00:00
serenity/Base/usr/share/man/man8/sysctl.md
Liav A 751aae77bc Kernel: Rename /sys/kernel/variables => /sys/kernel/conf
The name "variables" is a bit awkward and what the directory entries are
really about is kernel configuration so let's make it clear with the new
name.
2023-08-27 22:50:22 +02:00

999 B

Name

sysctl - configure kernel parameters at runtime

Synopsis

# sysctl [-a] [-w] [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 /sys/kernel/conf/.

Options

  • -a: Display all kernel parameters and associated values.
  • -w: Set kernel parameters to the specified values.

Arguments

  • variable: Retrieve the specified parameter.
  • variable=value: Set the specified parameter to the specified value. The option -w has to be specified.

Files

  • /proc/sys - source of kernel parameters

Examples

View all parameters:

# sysctl -a

View ubsan_is_deadly parameter:

# sysctl ubsan_is_deadly
ubsan_is_deadly = 1

Set ubsan_is_deadly parameter to zero (disabled): (Note: This requires root privileges)

# su
# sysctl -w ubsan_is_deadly=0
ubsan_is_deadly: 1 -> 0