Linux vlock command

Linux 命令大全Linux Command Encyclopedia

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

# vlock

Linux 命令大全Linux Command Encyclopedia

Other Extensions