免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1304 | 回复: 0
打印 上一主题 下一主题

kernel [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-13 14:42 |只看该作者 |倒序浏览

sysctl - configure kernel parameters at runtime
Synopsis
sysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ...
sysctl [-n] [-e] [-q] -p
sysctl [-n] [-e] -a
sysctl [-n] [-e] -A
Description
sysctl is used to modify kernel parameters at runtime. The parameters available are
those listed under /proc/sys/. Procfs is required for sysctl(8) support in Linux. You can use sysctl(8) to both read and write
sysctl data.
Parameters
variable
The name of a key to read from. An example is kernel.ostype. The '/' separator is also accepted in place of a '.'.
variable=value
To set a key, use the form variable=value, where variable is
the key and value is the value to set it to. If the value contains
quotes or characters which
are parsed by the shell, you may need to enclose the value in double
quotes. This requires the -w parameter to use.
-n
Use this option to disable printing of the key name when printing values.
-e
Use this option to ignore errors about unknown keys.
-N
Use this option to only print the names. It may be useful with shells that have programmable completion.
-q
Use this option to not display the values set to stdout.
-w
Use this option when you want to change a sysctl setting.
-p
Load in sysctl settings from the file specified or
/etc/sysctl.conf if none given. Specifying - as filename means reading
data from standard input.
-a
Display all values currently available.
-A
Display all values currently available in table form.
Examples
/sbin/sysctl -a
/sbin/sysctl -n kernel.hostname
/sbin/sysctl -w kernel.domainname="example.com"
/sbin/sysctl -p /etc/sysctl.conf
Files
/proc/sys /etc/sysctl.conf
See Also

sysctl.conf
(5)

Bugs
The -A parameter behaves just as -a does.
Author
George Staikos,
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44757/showart_381020.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP