LinuxCommandLibrary

vlock

Lock Linux virtual console sessions

TLDR

Lock current console

$ vlock
copy
Lock current via flag
$ vlock -c
copy
Lock all consoles
$ vlock -a
copy
Display help
$ vlock -h
copy
Display version
$ vlock -v
copy

SYNOPSIS

vlock [OPTIONS]

DESCRIPTION

vlock locks virtual console sessions, requiring a password to unlock. It can lock either the current console or all virtual consoles on the system.
This provides physical security for text-mode console sessions, similar to screen locking in graphical environments.

PARAMETERS

-c, --current

Lock only the current virtual console
-a, --all
Lock all virtual consoles
-h, --help
Display help information
-v, --version
Display version information

CAVEATS

Locking all consoles prevents access to any console without the password. Root can still unlock. Works only on virtual consoles, not pseudo-terminals.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community