1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 17:19:47 +01:00
tldr/pages/linux/physlock.md

25 lines
475 B
Markdown
Raw Normal View History

2020-10-15 00:24:47 +02:00
# physlock
> Lock all consoles and virtual terminals.
2024-10-12 10:02:00 +02:00
> More information: <https://github.com/muennich/physlock>.
2020-10-15 00:24:47 +02: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`