2025-03-14 21:59:59 -06:00
|
|
|
# physlock
|
|
|
|
|
|
|
|
|
|
> Lock all consoles and virtual terminals.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/xyb3rt/physlock#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|