physlock

Lock all consoles and virtual terminals.

TLDR

Lock every console (require current user or root to unlock)

$ physlock
copy

Mute kernel messages on console while locked

$ physlock -m
copy

Disable SysRq mechanism while locked

$ physlock -s
copy

Display a message before the password prompt

$ physlock -p "[Locked!]"
copy

Fork and detach physlock (useful for suspend or hibernate scripts)

$ physlock -d
copy

Copied to clipboard
free 100$ digital ocean credit