Using The Command - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 5. The proc File System
on the device. This allows the driver to place a specific type of header with every block of data
transmitted over the device, making it possible for the remote end of the connection to a block
of data as just one in a stream of data blocks. SLIP and PPP are common line disciplines, and
each are commonly used to connect systems to one other over a serial link.
Registered line disciplines are stored in the
available within the
ldisc/
4. Using the
sysctl
The
command is used to view, set, and automate kernel settings in the
/sbin/sysctl
directory.
/proc/sys/
For a quick overview of all settings configurable in the
command as root. This creates a large, comprehensive list, a small portion of
/sbin/sysctl -a
which looks something like the following:
net.ipv4.route.min_delay = 2
kernel.sysrq = 0
kernel.sem = 250
This is the same information seen if each of the files were viewed individually. The only
difference is the file location. For example, the
listed as
net.ipv4.route.min_delay
portion assumed.
proc.sys
The
command can be used in place of
sysctl
directory. For example, instead of using the command
/proc/sys/
echo 1 > /proc/sys/kernel/sysrq
use the equivalent
sysctl
sysctl -w kernel.sysrq="1"kernel.sysrq = 1
While quickly setting single values like this in
does not work as well on a production system as special settings within
when the machine is rebooted. To preserve custom settings, add them to the
file.
/etc/sysctl.conf
Each time the system boots, the
script contains a command to execute
values passed to the kernel. Any values added to
time the system boots.
86
ldiscs
directory.
Command
32000
32
/proc/sys/net/ipv4/route/min_delay
, with the directory slashes replaced by dots and the
echo
command as follows:
/proc/sys/
program runs the
init
using
sysctl
file, and more detailed information is
directory, type the
/proc/sys/
128
to assign values to writable files in the
is helpful during testing, this method
/etc/rc.d/rc.sysinit
/etc/sysctl.conf
therefore take effect each
/etc/sysctl.conf
file is
are lost
/proc/sys/
script. This
to determine the

Advertisement

Table of Contents
loading

Table of Contents