≡ Menu

halt command

CentOS/RHEL 6: Shutdown Command

I am a new RHEL (Red Hat Enterprise Linux) version 6 server admin user. What is the command to shut down a RHEL based system over the ssh based session? How do I shutdown a CentOS Linux based system?
[click to continue…]

HowTo: Shutdown Linux System

I'm a new Linux user. How do I shutdown Linux based system using command line options?
[click to continue…]

Linux Command To Shutdown HP/IBM/Sun/Dell Server System

How do I shutdown a Linux powered server using command line option?
[click to continue…]

Howto: Shutdown Linux System From Terminal

How do I shutdown Linux system from terminal or command line options?
[click to continue…]

Shutdown UNIX Command

How do I shutdown or poweroff a UNIX computer system from a shell prompt?
[click to continue…]

How to use shutdown command under Ubuntu Linux

Q. I've just installed Ubuntu Linux on my computer. I'd like to know - how to shutdown Ubuntu box over ssh session?

A. If you are not using GUI, you can run halt or shutdown command to powerdown box.

shutdown command

shutdown arranges for the system to be brought down in a safe way. All logged-in users are notified that the system is going down and, within the last five minutes of TIME, new logins are prevented. The shutdown utility provides an automated shutdown procedure for supersers to nicely notify users when the system is shutting down, saving them from system administrators, hackers, and gurus, who would otherwise not bother with such niceties.

How do I use shutdown command?

The shutdown command can be used to turn off or reboot a computer. Type the command as follows to shutdown server / computer immediately:
$ sudo shutdown -h now
$ sudo shutdown -h 0

How do I shutdown compute at specific time?

To shutdown computer at 6:45pm, enter:
$ sudo shutdown -h 18:45 "Server is going down for maintenance"
At 6:30pm message will go out to all user and 6:45 system will shutdown.

Please note that you can also use halt or poweroff or reboot command for stopping and restarting the system:
$ sudo halt
$ sudo poweroff

How do I reboot computer?

Simply use reboot command:
$ sudo reboot
$ sudo shutdown -r 0