How to reboot server from the command line

This comand only works on linux servers. Shutdown -r command: # shutdown -r now