shutdown

The shutdown command shuts down or reboots the computer.

Example:

$ sudo shutdown -r 0