To shutdown the server:

$sudo shutdown –h now

OR

$sudo halt

OR

$sudo init 0

To restart or reboot the server:

$sudo shutdown –r now

OR

$sudo reboot

OR

$sudo init 6

For more information on reboot and shutdown commands:-

$shutdown –-help

shutdown

$man shutdown

$reboot –help

reboot

$man reboot

Advertisements