Terminal or shell command to shutdown or reboot Ubuntu Linux

So how do you shutdown or reboot the Ubuntu Linux server from a terminal or a shell prompt? If GUI is working you can always click on a shutdown button. If GUI is not working or if you are working remotely over ssh type the following commands to shutdown from a terminal:
Continue reading “Terminal or shell command to shutdown or reboot Ubuntu Linux”