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