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 permissionsshutdown
- this is what we're trying to accomplish-r
- this flag tells Ubuntu we want it to restart after shutdownnow
- when we want the execution to occur
Sources:
- "How to reboot droplet through the command line / restart apache server" (https://www.digitalocean.com/community/questions/how-to-reboot-droplet-through-the-command-line-restart-apache-server)
Want more like this?
The best / easiest way to support my work is by subscribing for future updates and sharing with your network.