HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

physlock — Lock all consoles and virtual terminals. More information: <https://github.com/xyb3rt/physlock#usage

Submitted by: @import:tldr-pages··
0
Viewed 0 times
virtualphyslockcommandallandcliconsoleslock
linux

Problem

How to use the physlock command: Lock all consoles and virtual terminals. More information: <https://github.com/xyb3rt/physlock#usage>.

Solution

physlock — Lock all consoles and virtual terminals. More information: <https://github.com/xyb3rt/physlock#usage>.

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

Code Snippets

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

Context

tldr-pages: linux/physlock

Revisions (0)

No revisions yet.