summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-12-11 19:27:21 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-12-11 19:27:21 +0000
commitc06f992b02495ff60e359e9df1ed37d7b30b4c20 (patch)
tree3402873c3539f6edf60b9bfe0f6e5c7c9b9dab80 /usr.bin
parent15d474afee67144205b5b88c7a8826beb46bf08d (diff)
downloadsrc-test2-c06f992b02495ff60e359e9df1ed37d7b30b4c20.tar.gz
src-test2-c06f992b02495ff60e359e9df1ed37d7b30b4c20.zip
lock(1): Add EXAMPLES section
Add simple example showing the use of the flags: p, t, v Reviewed by: gbe@, yuripv@ Approved by: manpages (yuripv@) Differential Revision: https://reviews.freebsd.org/D27541
Notes
Notes: svn path=/head/; revision=368556
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/lock/lock.17
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/lock/lock.1 b/usr.bin/lock/lock.1
index d68af4f7e3a0..b3027fa19255 100644
--- a/usr.bin/lock/lock.1
+++ b/usr.bin/lock/lock.1
@@ -28,7 +28,7 @@
.\" @(#)lock.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd July 10, 2002
+.Dd December 11, 2020
.Dt LOCK 1
.Os
.Sh NAME
@@ -73,6 +73,11 @@ or
.Xr vt 4
virtual terminal.
.El
+.Sh EXAMPLES
+Lock the terminal for 5 minutes, disable switching virtual terminals and
+require the user's login password to unlock:
+.Pp
+.Dl $ lock -p -t 5 -v
.Sh SEE ALSO
.Xr vidcontrol 1 ,
.Xr syscons 4 ,