Linux vlock command
The Linux vlock command is used to lock virtual terminals.
Executing the vlock (virtual console lock) command can lock 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 parameter in a full-screen terminal, the function of using the keyboard
- to switch terminals will also be turned off.
- -c or --current Lock the current terminal session. This is the default value.
- -h or --help Online help.
- -v or --version Display version information.
Examples
Lock a virtual terminal
# vlockOther Extensions
Linux Command Encyclopedia