Essay record

How to Restart Ubuntu via Terminal

About the page

Record
Essay / / 1 min read / 110 words
Tags
Unfiled

DISCLOSURE: Some links may be affiliate links. Details

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:

Built with CloudSeed Rust