The weather has had a bit of an impact on my internet connection, so this is just going to be a quick article about how you reboot from the terminal. I want to schedule this as soon as possible, so it’ll be a fairly low-effort article. This should not take long!
There are times when you may want to know how to reboot from the terminal. Then, there are times when you can’t access a GUI, and using the terminal is the cleanest method of rebooting your computer. Knowing how to reboot from the terminal might be a skill worth having. I’ll show you a couple of quick and easy ways to do this.
As the title says, this is going to take place in the terminal. You can usually just press
So, with your terminal open…
Reboot With systemd:
The first command we’ll use to reboot your computer. We’ll be using systemd. This will only work if you’re using a distro with systemd.
1 | sudo systemctl reboot |
Reboot With shutdown:
It should be fairly obvious that the shutdown command can be used to reboot your computer. This is one of the generic utilities, so you won’t need to install anything.
1 | sudo shutdown -h now |
(Check the man page because there are a lot of options available.)
Reboot With reboot:
Finally, we’ll use the reboot command to reboot your computer. This might be the easiest to remember and you shouldn’t need to install anything new. You need the following command:
1 | sudo reboot now |
In some distros, you can drop the ‘now’ and the command will still reboot your computer immediately.
Closure:
So, there you have it. You have a new article and it should even be published on time. It’s not a long article. The subject is easy enough. You’ll never know when you need to reboot from the terminal, and now you do.
Ah well…
Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.