両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:commands:service [2025/04/02 21:01] – ともやん | linux:commands:service [2025/04/19 15:36] (現在) – [シャットダウン、サスペンド、休止状態] ともやん |
---|
===== シャットダウン、サスペンド、休止状態 ===== | ===== シャットダウン、サスペンド、休止状態 ===== |
Fedora | Fedora |
<WRAP color_term> | <WRAP mintbl> |
<WRAP color_command><html><pre> | ^ コマンド ^ 説明 ^ |
<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> poweroff</pre> | | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> <font color="#A347BA">--no-wall</font> reboot |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> <font color="#A347BA">--no-wall</font> poweroff</pre> | </pre></html></WRAP> | システムを再起動する | |
| | <WRAP color_command><html><pre> |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">--poweroff</font> 07:21</pre> | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> poweroff</pre></html></WRAP> | システムの電源を切る | |
| | <WRAP color_command><html><pre> |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">--halt</font> +3</pre> | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> <font color="#A347BA">--no-wall</font> poweroff |
| </pre></html></WRAP> | システムの電源を切る (ログインユーザーに通知しない) | |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">-c</font> </pre> | | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">--poweroff</font> <a href="https://youtu.be/UhNDc-HwjFo?si=0l0YUuOn4zdYErlp">07:21</a> |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> halt</pre> | </pre></html></WRAP> | システムの電源を切る (指定時間に) | |
| | <WRAP color_command><html><pre> |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> reboot</pre> | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> suspend |
| </pre></html></WRAP> | システムをサスペンド(システム状態は RAM に保存)する | |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> <font color="#A347BA">--no-wall</font> reboot</pre> | | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font><font color="#999999"> </font><font color="#26A269">systemctl</font> hibernate |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> suspend</pre> | </pre></html></WRAP> | システムをハイバネート(システム状態はディスクに保存)する | |
| | <WRAP color_command><html><pre> |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font><font color="#999999"> </font><font color="#26A269">systemctl</font> hibernate</pre> | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> hybrid-sleep |
| </pre></html></WRAP> | システムをハイブリッドスリープ(システム状態は RAM とディスクに保存、一定期間でサスペンドからハイバネートへ移行)する | |
<pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> hybrid-sleep</pre> | | <WRAP color_command><html><pre> |
</html></WRAP> | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> suspend-then-hibernate |
| </pre></html></WRAP> | | |
| | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> soft-reboot |
| </pre></html></WRAP> | | |
| | <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">--halt</font> +3 |
| </pre></html></WRAP> |
| | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">shutdown</font> <font color="#A347BA">-c</font> |
| </pre></html></WRAP> | | |
| | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> halt |
| </pre></html></WRAP> | | |
| | <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">systemctl</font> reboot |
| </pre></html></WRAP> | | |
</WRAP> | </WRAP> |
| |
[[https://www.freedesktop.org/software/systemd/man/systemd.preset.html|systemd.preset]]\\ | [[https://www.freedesktop.org/software/systemd/man/systemd.preset.html|systemd.preset]]\\ |
[[rhdoc>ja/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-power#sect-Managing_Services_with_systemd-Power|10.4. システムのシャットダウン、サスペンド、および休止状態 | Red Hat Product Documentation]]\\ | [[rhdoc>ja/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-power#sect-Managing_Services_with_systemd-Power|10.4. システムのシャットダウン、サスペンド、および休止状態 | Red Hat Product Documentation]]\\ |
| [[rhdoc>ja/documentation/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/shutting-down-suspending-and-hibernating-the-system_managing-systemd#changing-the-power-button-behavior-in-gnome_changing-the-power-button-behavior|12.4. システムのシャットダウン、サスペンド、およびハイバネート | Red Hat Product Documentation]]\\ |
| [[arc>Systemd#.E9.9B.BB.E6.BA.90.E7.AE.A1.E7.90.86|systemd - ArchWiki - systemd - ArchWiki]]\\ |
| [[arc>%E9%9B%BB%E6%BA%90%E7%AE%A1%E7%90%86/%E3%82%B5%E3%82%B9%E3%83%9A%E3%83%B3%E3%83%89%E3%81%A8%E3%83%8F%E3%82%A4%E3%83%90%E3%83%8D%E3%83%BC%E3%83%88#.E9.AB.98.E3.83.AC.E3.83.99.E3.83.AB.E3.82.A4.E3.83.B3.E3.82.BF.E3.83.BC.E3.83.95.E3.82.A7.E3.82.A4.E3.82.B9_.28systemd.29|電源管理/サスペンドとハイバネート - ArchWiki]]\\ |
| |