Personal nest in the information age

Debian 10 (Buster)关机、重启命令

刚升级到Debian 10,发现关机命令“shutdown”用不了了,还以为Debian 10不支持这些命令了呢。后来看Debian官方Wiki才明白,是su的问题

自从Debian 8使用systemd之后,Debian也开始支持使用systemctl命令关闭系统。

下面给出几种Debian 10的关机、重启方法:

关机

方法1:

$ su -
# shutdown

方法2:

$ sudo shutdown

方法3:

# systemctl poweroff

重启

方法1:

$ su -
# reboot

方法2:

$ sudo reboot

方法3:

# systemctl reboot

Bibliography

Till. How to Shutdown or Reboot Debian 10 (Buster). FAQForge.com. July 8, 2019

Leave a comment

Your email address will not be published. Required fields are marked *