how to restart ubuntu 18.04 server code example Example: restart ubuntu 18.04 server sudo shutdown -r now