physlock

Lock all consoles and virtual terminals. More information: <http://github.com/muennich/physlock>.

Install

All systems
curl cmd.cat/physlock.sh
Debian Debian
apt-get install physlock
Ubuntu
apt-get install physlock
Arch Arch Linux
pacman -S physlock
image/svg+xml Kali Linux
apt-get install physlock
Windows (WSL2)
sudo apt-get update sudo apt-get install physlock
Raspbian
apt-get install physlock

Lock all consoles and virtual terminals. More information: <http://github.com/muennich/physlock>.

  • Lock every console (require current user or root to unlock):
    physlock
  • Mute kernel messages on console while locked:
    physlock -m
  • Disable SysRq mechanism while locked:
    physlock -s
  • Display a message before the password prompt:
    physlock -p "Locked!"
  • Fork and detach physlock (useful for suspend or hibernate scripts):
    physlock -d

© tl;dr; authors and contributors