What Is the Command to Turn off a Linux Computer from the Shell?
Contents to Shut Down the System from a Terminal Session, Sign in or “Su” to the “Root” Account. Then Type “/Sbin/Shutdown -R Now”. It May Take Several Moments...
To shut down the system from a terminal session, sign in or “su” to the “root” account. Then type “/sbin/shutdown -r now”. It may take several moments for all processes to be terminated, and then Linux will shut down. The computer will reboot itself.
What is the command to shutdown a computer in Linux?
Use halt to halt the system without powering it off. To power off the machine, use poweroff or shutdown -h now. The systemd init system provides additional commands that perform the same functions; for example systemctl reboot or systemctl poweroff.
Which command is used to shutdown the system?
You use the Shutdown command with the /m \Computer parameter to shut down or restart a remote computer. The following examples illustrate use of the Shutdown command for remote computers.