svn commit: r368556 - head/usr.bin/lock

Fernando ApesteguĂ­a <[email protected]> Fri, 11 Dec 2020 19:27:21 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012111927.0BBJRLHo000404__12907.8891755611$1607714849$gmane$org@repo.freebsd.org>
Author: fernape (ports committer)
Date: Fri Dec 11 19:27:21 2020
New Revision: 368556
URL: https://svnweb.freebsd.org/changeset/base/368556

Log:
  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

Modified:
  head/usr.bin/lock/lock.1

Modified: head/usr.bin/lock/lock.1
==============================================================================
--- head/usr.bin/lock/lock.1	Fri Dec 11 18:14:43 2020	(r368555)
+++ head/usr.bin/lock/lock.1	Fri Dec 11 19:27:21 2020	(r368556)
@@ -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 ,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"