From the course: Ubuntu Linux: Essential Commands and System Administration

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Change kernel parameters

Change kernel parameters

The kernel offers many runtime parameters that we can set in order to change how certain things work. Rather than having to hard code and recompile the kernel every time we want to make a change to a kernel parameter, we have a few tools at our disposal to change things more easily. These options are exposed in directories within the /proc/sys directory, and the files under each of these subdirectories contain settings that correspond with the value of each parameter. The parameters are generally organized into a series of groups, as we can see, and this first grouping here, net, user, and so on, are represented by the first level of folders within the /proc/sys folder. So we can see the parameters that are available to change for IPv4 networking in /proc/sys/net/ipv4. There's quite a few. We can also see the options with sysctl -a, which shows all of the parameters that we can set. I'll pipe this into less. Once again, there's quite a few here. I'll scroll down and I'll find…

Contents