sysctl.8 (cd9cdd0eaad8cdb99432e39d819ff043631c8ecb) sysctl.8 (f126d349810fdb512c0b01e101342d430b947488)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93
29.\" $FreeBSD$
30.\"
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93
29.\" $FreeBSD$
30.\"
31.Dd June 30, 2022
31.Dd December 24, 2022
32.Dt SYSCTL 8
33.Os
34.Sh NAME
35.Nm sysctl
36.Nd get or set kernel state
37.Sh SYNOPSIS
38.Nm
32.Dt SYSCTL 8
33.Os
34.Sh NAME
35.Nm sysctl
36.Nd get or set kernel state
37.Sh SYNOPSIS
38.Nm
39.Op Fl bdehiNnoTtqWx
39.Op Fl bdeFhilNnoTtqWx
40.Op Fl B Ar bufsize
41.Op Fl f Ar filename
42.Ar name Ns Op = Ns Ar value Ns Op , Ns Ar value
43.Ar ...
44.Nm
40.Op Fl B Ar bufsize
41.Op Fl f Ar filename
42.Ar name Ns Op = Ns Ar value Ns Op , Ns Ar value
43.Ar ...
44.Nm
45.Op Fl bdehNnoTtqWx
45.Op Fl bdeFhlNnoTtqWx
46.Op Fl B Ar bufsize
47.Fl a
48.Sh DESCRIPTION
49The
50.Nm
51utility retrieves kernel state and allows processes with appropriate
52privilege to set kernel state.
53The state to be retrieved or set is described using a

--- 41 unchanged lines hidden (view full) ---

95or
96.Fl n
97is specified, or a variable is being set.
98.It Fl f Ar filename
99Specify a file which contains a pair of name and value in each line.
100.Nm
101reads and processes the specified file first and then processes the name
102and value pairs in the command line argument.
46.Op Fl B Ar bufsize
47.Fl a
48.Sh DESCRIPTION
49The
50.Nm
51utility retrieves kernel state and allows processes with appropriate
52privilege to set kernel state.
53The state to be retrieved or set is described using a

--- 41 unchanged lines hidden (view full) ---

95or
96.Fl n
97is specified, or a variable is being set.
98.It Fl f Ar filename
99Specify a file which contains a pair of name and value in each line.
100.Nm
101reads and processes the specified file first and then processes the name
102and value pairs in the command line argument.
103.It Fl F
104Print the format of the variable.
105This is additional information to describe the type of the variable and
106most useful with struct types such as clockinfo, timeval, and loadavg.
103.It Fl h
104Format output for human, rather than machine, readability.
105.It Fl i
106Ignore unknown OIDs.
107The purpose is to make use of
108.Nm
109for collecting data from a variety of machines (not all of which
110are necessarily running exactly the same software) easier.
107.It Fl h
108Format output for human, rather than machine, readability.
109.It Fl i
110Ignore unknown OIDs.
111The purpose is to make use of
112.Nm
113for collecting data from a variety of machines (not all of which
114are necessarily running exactly the same software) easier.
115.It Fl l
116Show the length of variables along with their values.
117This option cannot be combined with the
118.Fl N
119option.
111.It Fl N
112Show only variable names, not their values.
113This is particularly useful with shells that offer programmable
114completion.
115To enable completion of variable names in
116.Xr zsh 1 Pq Pa ports/shells/zsh ,
117use the following code:
118.Bd -literal -offset indent

--- 215 unchanged lines hidden ---
120.It Fl N
121Show only variable names, not their values.
122This is particularly useful with shells that offer programmable
123completion.
124To enable completion of variable names in
125.Xr zsh 1 Pq Pa ports/shells/zsh ,
126use the following code:
127.Bd -literal -offset indent

--- 215 unchanged lines hidden ---