Linux vlock command
The Linux vlock command is used to lock virtual terminals.
Running the vlock (virtual console lock) command locks the virtual terminal to prevent others from using it.
Syntax
vlock [-achv]
Parameter Description:
- -a or --all: lock all terminal sessions; if you use this option in a full-screen terminal, it will also disable the keyboard
- function for switching terminals.
- -c or --current: lock the current terminal session; this is the default.
- -h or --help: online help.
- -v or --version Display version information.
Example
Locking a virtual terminal
# vlock
Linux Command Reference