What Command Is Used to Halt a Linux System?
Contents

halt Command: halt command used to halt, power-off or reboot the machine. poweroff Command: poweroff command used to halt, power-off or reboot the machine.

What is halt command in Linux?

This command in Linux is used to instruct the hardware to stop all the CPU functions. Basically, it reboots or stops the system. If the system is in runlevel 0 or 6 or using the command with –force option, it results in rebooting of the system otherwise it results in shutdown. Syntax: halt [OPTION]…

How do I shut down Linux?

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.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest