每当我使用以下
sudo shutdown now
sudo reboot
sudo shutdown -h
我的笔记本电脑死机了,到底是怎么回事,有时候可以工作但不是一直可以。为什么会这样???
我的输入命令或安装有问题吗?
答案1
尝试以下代码
sudo shutdown -P now
命令的所有可用选项shutdown
是
-r Requests that the system be rebooted after it has been brought down.
-h Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system.
-H Requests that the system be halted after it has been brought down.
-P Requests that the system be powered off after it has been brought down.
-c Cancels a running shutdown.
-k Only send out the warning messages and disable logins, do not actually bring the system down.
答案2
尝试sudo shutdown -h now
命令快速关机。
答案3
尝试
init 0
init 进程关闭 init 文件中写明的所有生成的进程/守护进程