Daily Linux Command Learning -3-sysctl

Source: Internet
Author: User
Tags deprecated

SYSCTL Kernel Variable Configuration

usage:sysctl [Options] [Variable[=value] ...]  namesysctl-configure kernel parameters at Runtime descriptionsysctl are used to modify kernel parameters at RU Ntime. The parameters available is those listed under/proc/sys/. PROCFS is required for sysctl Supportin Linux. You can use Sysctl to both read and write Sysctl data. options:-a,--all display all variables-a alias Of-a-x alias of-a--deprecated include deprecated parameters to Listing-b,--binary print value without new line-e,--ignore ignore UNK Nown variables errors-n,--names print variable names without values-n,--values print only values of a variables-p,--loa D[=<file>] read values from file-f alias Of-p--system read values from all system directories-r,--pattern <expr Ession>select setting that match expression-q,--quiet does not echo variable set-w,--write enable writing a value to VA Riable-o does Nothing-x does nothing-d alias Of-h -h,--help Display this Help and exit-v,--version ouTput version information and exit   instance 1:/sbin/sysctl-a Show all variables   Instance 2: Print only a fixed variable/sbin/sysctl-n Kernel.hostname  /sbin/sysctl-n net.ipv4.tcp_timestamps   Instance 3: Writing kernel variables/sbin/sysctl-w Kernel.domainname= "example.com"    Example 4: Read Data/sbin/sysctl-p/etc/sysctl.conf No output   Instance 5: Regular Match/sbin/sysctl -A--pattern forward  /sbin/sysctl-a--pattern forward$  /sbin/sysctl-a--pattern ' net.ipv4.conf . (Eth|wlan) 0.arp '     

Daily Linux Command Learning -3-sysctl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.