aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-10-05 13:49:45 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-10-05 13:49:45 +0000
commita8f6fe34fd063f17b2e3f8a6448075aaa981cf10 (patch)
treed1e8ca2d03f1ff8a2134616c41d56c7d0e7d6c98 /bin
parent5145778475a781de3f159ce08e03f40c954f4975 (diff)
downloadsrc-a8f6fe34fd063f17b2e3f8a6448075aaa981cf10.tar.gz
src-a8f6fe34fd063f17b2e3f8a6448075aaa981cf10.zip
kenv(1): Add EXAMPLES to man page
Add EXAMPLES section covering all the options Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26664
Notes
Notes: svn path=/head/; revision=366447
Diffstat (limited to 'bin')
-rw-r--r--bin/kenv/kenv.140
1 files changed, 39 insertions, 1 deletions
diff --git a/bin/kenv/kenv.1 b/bin/kenv/kenv.1
index 0010caf7b243..f93b73f15816 100644
--- a/bin/kenv/kenv.1
+++ b/bin/kenv/kenv.1
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 11, 2012
+.Dd October 5, 2020
.Dt KENV 1
.Os
.Sh NAME
@@ -102,6 +102,44 @@ Almost any printable character except
.Sq =
is acceptable as part of a name.
Quotes are optional and necessary only if the value contains whitespace.
+.Sh EXAMPLES
+Show kernel probe hints variable names and filter for the uart
+device
+.Bd -literal -offset indent
+$ kenv -h -N | grep uart
+hint.uart.0.at
+hint.uart.0.flags
+hint.uart.0.irq
+hint.uart.0.port
+hint.uart.1.at
+hint.uart.1.irq
+hint.uart.1.port
+.Ed
+.Pp
+Show the value of a specific variable:
+.Bd -literal -offset indent
+$ kenv hint.uart.1.at
+isa
+.Ed
+.Pp
+Same as above but adding the name of the variable in the report:
+.Bd -literal -offset indent
+$ kenv -v hint.uart.1.at
+hint.uart.1.at="isa"
+.Ed
+.Pp
+Try to delete a variable and suppress warnings if any:
+.Bd -literal -offset indent
+$ kenv -q -u hint.uart.1.at
+.Ed
+.Pp
+Set the value of the
+.Ev verbose_loading
+variable
+.Bd -literal -offset indent
+$ kenv verbose_loading="YES"
+verbose_loading="YES"
+.Ed
.Sh SEE ALSO
.Xr kenv 2 ,
.Xr config 5 ,