The shutdown command for Linux and UNIX is used to shutdown your Linux system properly.
This command will bring down the system immediately.
shutdown -h now
This will shut down the system in 60 minutes.
shutdown -h +60
Use this command to reboot the computer immediately.
shutdown -r now
Here is an alternative command for shutting down your machine. This will switch to runlevel 0 and switch off your computer.