如何暂停 Arch Linux

qub*_*dup 16 linux arch-linux suspend

什么命令可以挂起适当配置的 Arch Linux 系统?

用户故事:要么现在,要么永远。我在逃。我没有时间阅读ArchWiki/Power_management/Sus​​pend_and_hibernate但我想要节能。如何在我错过约会之前暂停 Arch Linux?

注意:这个问题的存在是因为 Arch Wiki 不像 StackExchange 那样简单,而且因为它是一个很少使用的命令(或命令列表?),因此很难记住。

qub*_*dup 15

什么命令可以挂起适当配置的 Arch Linux 系统?

systemctl suspend
Run Code Online (Sandbox Code Playgroud)

您可能必须使用sudo. 可能还有其他方式,具体取决于配置。如果有人愿意扩展或重新回答在 Arch Linux 系统上常见的单行命令类型的完整列表,这对所有其他能源经济人士来说是很好的,因为该重要会议正在奔波。


Tho*_*hor 13

如果您查看-page for中的System Commands部分,您将看到与系统相关的各种选项。mansystemctl

不同模式的简要列表如下:

  • # systemctl default
  • # systemctl rescue
  • # systemctl emergency

然后,暂停等:

  • # systemctl halt
  • # systemctl poweroff
  • # systemctl reboot
  • # systemctl suspend
  • # systemctl hibernate
  • # systemctl hybrid-sleep

有关系统命令的更多信息,建议您阅读man-page