X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/709a58224ea43109dc10bfd6a67de1e432174197..34d340d711a2b033f5da480ed7b5eb147679a588:/sysctl.tproj/sysctl.8 diff --git a/sysctl.tproj/sysctl.8 b/sysctl.tproj/sysctl.8 index 5261f6b..cf7fa58 100644 --- a/sysctl.tproj/sysctl.8 +++ b/sysctl.tproj/sysctl.8 @@ -65,17 +65,21 @@ described as a dotted set of components. .Pp The following options are available: .Bl -tag -width indent +.\" ========== .It Fl A List all MIB variables including opaque variables (which are normally suppressed). The format and length are printed, as well as a hex dump of the first sixteen bytes of the value. +.\" ========== .It Fl a List all the currently available non-opaque values. This option is ignored if one or more variable names are specified on the command line. +.\" ========== .It Fl b Force the value of the variable(s) to be output in raw, binary format. No names are printed and no terminating newlines are output. This is mostly useful with a single variable. +.\" ========== .It Fl n Show only variable values, not their names. This option is useful for setting shell variables. @@ -84,16 +88,19 @@ For instance, to save the pagesize in variable use: .Pp .Dl "set psize=`sysctl -n hw.pagesize`" -.It Fl X -Same as -.Fl A -but prints a hex dump of the entire value instead of just the first few bytes. +.\" ========== .It Fl w Ar name=value Used to set values. The MIB name ( .Ar name ) followed by an equal sign and the new value ( .Ar value ) to be used. +.\" ========== +.It Fl X +Same as +.Fl A , +but prints a hex dump of the entire value +instead of just the first few bytes. .El .Pp If just a MIB style name is given, @@ -155,6 +162,7 @@ privilege can change the value. .It hw.byteorder integer no .It hw.physmem integer no .It hw.usermem integer no +.It hw.memsize integer no .It hw.pagesize integer no .It user.cs_path string no .It user.bc_base_max integer no @@ -184,6 +192,7 @@ This information can be obtained by using the command: .Bd -literal -offset indent sysctl debug .Ed +.Pp In addition, .Nm sysctl can extract information about the filesystems that have been compiled @@ -192,6 +201,7 @@ This information can be obtained by using the command: .Bd -literal -offset indent sysctl vfs .Ed +.Pp By default, only filesystems that are actively being used are listed. Use of the .Fl A @@ -199,29 +209,29 @@ flag lists all the filesystems compiled into the running kernel. .Sh EXAMPLES .Pp For example, to retrieve the maximum number of processes allowed -in the system, one would use the follow request: -.Bd -literal -offset indent -compact +in the system, one would use the request: +.Bd -literal -offset indent sysctl kern.maxproc .Ed .Pp To set the maximum number of processes allowed -in the system to 1000, one would use the follow request: -.Bd -literal -offset indent -compact +in the system to 1000, one would use the request: +.Bd -literal -offset inden sysctl -w kern.maxproc=1000 .Ed .Pp Information about the system clock rate may be obtained with: -.Bd -literal -offset indent -compact +.Bd -literal -offset indent sysctl kern.clockrate .Ed .Pp Information about the load average history may be obtained with: -.Bd -literal -offset indent -compact +.Bd -literal -offset indent sysctl vm.loadavg .Ed .Pp Information about the system's swap space usage may be obtained with: -.Bd -literal -offset indent -compact +.Bd -literal -offset indent sysctl vm.swapusage .Ed .Sh FILES