← 返回命令列表

Linux command

physlock 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Lock

physlock

Example

physlock -m

Example

physlock -s

Example

physlock -p "[Locked!]"

Example

physlock -d

说明

physlock locks all virtual consoles and prevents unauthorized access to the system. Unlike screen lockers that only protect graphical sessions, physlock secures all TTYs, preventing access through Ctrl+Alt+F1-F6 switching. Authentication is required from the current user or root to unlock. This makes it suitable for securing systems with physical access concerns, particularly servers or kiosks.

参数

-d
Fork and detach (daemonize)
-m
Mute kernel messages while locked
-s
Disable SysRq key while locked
-p _message_
Display message before password prompt
-l
Only lock the current tty

FAQ

What is the physlock command used for?

physlock locks all virtual consoles and prevents unauthorized access to the system. Unlike screen lockers that only protect graphical sessions, physlock secures all TTYs, preventing access through Ctrl+Alt+F1-F6 switching. Authentication is required from the current user or root to unlock. This makes it suitable for securing systems with physical access concerns, particularly servers or kiosks.

How do I run a basic physlock example?

Run `physlock` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d do in physlock?

Fork and detach (daemonize)