Using the sysctl Command

he /sbin/sysctl command is used to view, set, and automate kernel settings in the /proc/sys/ directory.
For a quick overview of all settings configurable in the /proc/sys/ directory, type:

/sbin/sysctl -a

The sysctl command can be used in place of echo to assign values to writable files in the /proc/sys/ directory. For example, instead of using the command

echo 1 > /proc/sys/kernel/sysrq

Use the equivalent sysctl command as follows:

sysctl -w kernel.sysrq=”1″
kernel.sysrq = 1

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.