2001-08-13 16:33:00 +00:00
|
|
|
.\" Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
|
2000-07-08 08:33:40 +00:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2001-09-21 07:04:47 +00:00
|
|
|
.Dd July 8, 2000
|
2000-07-08 08:33:40 +00:00
|
|
|
.Dt KENV 1
|
2001-07-10 14:16:33 +00:00
|
|
|
.Os
|
2000-07-08 08:33:40 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm kenv
|
2002-04-17 13:08:14 +00:00
|
|
|
.Nd dump or modify the kernel environment
|
2000-07-08 08:33:40 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2000-07-08 08:33:40 +00:00
|
|
|
.Op Fl h
|
2002-04-17 13:08:14 +00:00
|
|
|
.Nm
|
|
|
|
.Ar variable Ns Op = Ns Ar value
|
|
|
|
.Nm
|
|
|
|
.Fl u
|
|
|
|
.Ar variable
|
2000-07-08 08:33:40 +00:00
|
|
|
.Sh DESCRIPTION
|
2001-09-21 07:04:47 +00:00
|
|
|
The
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2002-04-17 13:08:14 +00:00
|
|
|
utility will dump the kernel environment if
|
|
|
|
invoked without arguments.
|
2000-07-08 08:33:40 +00:00
|
|
|
If the
|
|
|
|
.Fl h
|
2001-09-21 07:04:47 +00:00
|
|
|
option is specified, it will limit the report to kernel probe hints.
|
|
|
|
If an optional
|
|
|
|
.Ar variable
|
|
|
|
name is specified,
|
2000-07-08 08:33:40 +00:00
|
|
|
.Nm
|
|
|
|
will only report that value.
|
2002-04-17 13:08:14 +00:00
|
|
|
If the
|
|
|
|
.Fl u
|
|
|
|
option is specified,
|
|
|
|
.Nm
|
|
|
|
will delete the given environment variable.
|
|
|
|
If the environment variable is followed by an optional
|
|
|
|
.Ar value
|
|
|
|
.Nm
|
|
|
|
will set the environment variable to this value.
|
2000-07-08 08:33:40 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr loader 8
|
|
|
|
.Sh HISTORY
|
2001-09-21 07:04:47 +00:00
|
|
|
The
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2001-09-21 07:04:47 +00:00
|
|
|
utility appeared in
|
2000-11-23 11:21:35 +00:00
|
|
|
.Fx 4.1.1 .
|