mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
25 lines
479 B
Markdown
25 lines
479 B
Markdown
# 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`
|