lock - reserves a terminal
lock [-n] [-p] [-t timeout]
lock requests a password from the user, reads it again for verification and then will normally not relinquish the terminal until the password is repeated. There are two other conditions under which it will terminate: it will timeout after some interval of time and it may be killed by someone with the appropriate privileges.
All of the specified options are optional.
Don't use a timeout value. Terminal will be locked forever.
A password is not requested, instead the user's current login password is used.
The time limit (default 15 minutes) is changed to timeout minutes.
The BSD version of the lock command supports using an S/Key to lock the terminal.
The Perl implementation of lock was writtem by Aron Atkins, firstname.lastname@example.org.
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.
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.