— dump or modify the kernel
utility will dump the kernel environment if invoked
without arguments. If the -h
option is specified, it will
limit the report to kernel probe hints. If an optional
name is specified, kenv
only report that value. If the -u
option is specified,
will delete the given environment variable. If the
environment variable is followed by an optional value
will set the environment variable to this value.
If the -q
option is set, warnings normally printed as a result
of being unable to perform the requested operation will be suppressed.
Variables can be added to the kernel environment using the
file, or also statically compiled into the
kernel using the statement
in the kernel config file. The file can contain lines of the form
name = value # this is a comment
where whitespace around name and '=', and everything after a '#' character, are
ignored. Almost any printable character except '=' is acceptable as part of a
name. Quotes are optional and necessary only if the value contains whitespace.
utility appeared in FreeBSD