How to Restart Ubuntu via Terminal

Date: 2018-08-15 |

Problem: I'm running my websites on a Digital Ocean droplet and every time I remote in via ssh, it says that I need to restart Ubuntu in order to complete an update. How do I restart Ubuntu?

Solution: Simple, remote into your machine and type:

sudo shutdown -r now

  • sudo - tells terminal you want to run with admin permissions
  • shutdown - this is what we're trying to accomplish
  • -r - this flag tells Ubuntu we want it to restart after shutdown
  • now - when we want the execution to occur

Sources:

Want more like this?

The best / easiest way to support my work is by subscribing for future updates and sharing with your network.