LOCK(1)
π NAME π
okay bestie, welcome to LOCK(1) β the lock command from the User Contributed Perl Documentation. She reserves a terminal. That's the whole job, and she ate. π
β¨ SYNOPSIS β¨
the vibe check:
lock [-n] [-p] [-t timeout]
π DESCRIPTION π
lock is literally the terminal bodyguard: she requests a password from the user, reads it again for verification, and then will normally not relinquish the terminal until the password is repeated. Periodt. π
There are two other conditions under which it will terminate:
- it will timeout after some interval of time β³
- it may be killed by someone with the appropriate privileges π
πΈ OPTIONS πΈ
All of the specified options are optional β yes, every single one. π«Ά
-nβ don't use a timeout value. the terminal will be locked forever. π-pβ a password is not requested; instead the user's current login password is used. π-t timeoutβ the time limit (default 15 minutes) is changed to timeout minutes. β°
β οΈ CAVEATS β οΈ
heads up, bestie: the BSD version of the lock command supports using an S/Key to lock the terminal. iykyk π
π AUTHOR π
the Perl implementation of lock was written by Aron Atkins, atkins@gweep.net. iconic behavior π
π COPYRIGHT and LICENSE π
This program is copyright by Aron Atkins 1999. π
This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same. π«Ά
xoxo bestie π
β perl v5.42.2, 2026-02-15
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms