← 返回命令列表

Linux command

systemctl-suspend-then-hibernate 命令

文本

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

常用示例

Suspend then hibernate

systemctl suspend-then-hibernate

Force

systemctl suspend-then-hibernate -f

说明

systemctl suspend-then-hibernate first suspends the system to RAM, then automatically wakes up and hibernates to disk after a configured delay. This provides fast wake-up when used shortly after suspension, while protecting against data loss if the battery depletes during extended sleep. The delay before hibernation is configured in /etc/systemd/sleep.conf via the HibernateDelaySec= option (default varies by distribution).

参数

-f, --force
Force operation even if inhibitors are present
--no-wall
Don't send wall message to users

FAQ

What is the systemctl-suspend-then-hibernate command used for?

systemctl suspend-then-hibernate first suspends the system to RAM, then automatically wakes up and hibernates to disk after a configured delay. This provides fast wake-up when used shortly after suspension, while protecting against data loss if the battery depletes during extended sleep. The delay before hibernation is configured in /etc/systemd/sleep.conf via the HibernateDelaySec= option (default varies by distribution).

How do I run a basic systemctl-suspend-then-hibernate example?

Run `systemctl suspend-then-hibernate` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in systemctl-suspend-then-hibernate?

Force operation even if inhibitors are present