Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Get Started > Issue <<  250 of 376 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 2617
Last update: 07-01-04
Issue:
How do I make changes to my proc filesystem permanent?
Resolution:
Values stored in the /proc filesystem can, in most cases, be tuned by echoing values directly to the file. For example:
# echo 1 > /proc/sys/net/ipv4/ip_forward
However, upon rebooting this value will be reset to the default. A clean way to make changes to the /proc filesystem so they are permanent is to set them as variables in /etc/sysctl.conf.

Variable names in this file are derived from their proc filename. So to determine a variable's name, take the path of the proc file, drop the leading /proc/sys/ and then replace the remain /'s with .'s. Take for example the above:
# echo 1 > /proc/sys/net/ipv4/ip_forward
in /etc/sysctl.conf, this would look like:
net.ipv4.ip_forward = 1
Changes to sysctl.conf take effect upon booting. If you want changes to take effect without rebooting, use the following:
# sysctl -p
See man sysctl for more details.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Get Started > Issue <<   250  of  376  >>