debian12关机命令bash shutdown command not found
The "shutdown" command may not be available in your system if it is not installed or if the command is not in your PATH. To resolve this issue, you can try using the full path of the shutdown command which is typically located at "/sbin/shutdown".
The complete command to shutdown your system using the full path would be:
/sbin/shutdown now
Alternatively, you can try using the "poweroff" command, which is widely available on most Linux distributions, including Debian:
poweroff
If none of the above commands work, it's possible that you don't have the necessary permissions to shut down the system. In that case, you may need to use the "sudo" command to run the shutdown or poweroff command with administrative privileges:
sudo shutdown now
or
sudo poweroff
You will need to enter your password when prompted by the sudo command
原文地址: https://www.cveoy.top/t/topic/imS3 著作权归作者所有。请勿转载和采集!