Categories
Linux Tutorial Series

Linux Tutorial Series – 158 – Shutting down your system via the command line

Here is the video version, if you prefer it:

If you ever want to shut your system down via the command line, here is how it is done: (Ward, 2014)⁠

shutdown -h now

If you want to restart your machine, execute this:

shutdown -r now

In order to delay the shutdown or the restart, write this (this is the shutdown case):

shutdown -h +numberofMinutes

I usually shut down my computer via the GUI, but there may be some situations where you might have to shut down the computer via the command line (such as when accessing a computer remotely, for example).

Hope you learned something new!

References

Ward, B. (2014). How Linux Works: What Every Superuser Should Know (2nd ed.). No Starch Press. Pages 144-145

NewsletterUpdates on interesting things I am doing

Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.

Leave a Reply

Your email address will not be published. Required fields are marked *