thecoderworld
  • Programming
  • Security
  • Tech
  • How To
  • Lists
  • Windows 11
  • Chromebook
  • Linux
No Result
View All Result
thecoderworld
  • Programming
  • Security
  • Tech
  • How To
  • Lists
  • Windows 11
  • Chromebook
  • Linux
No Result
View All Result
thecoderworld
No Result
View All Result

Home > Linux > How to Reboot Linux System with Command

How to Reboot Linux System with Command

Surajit Saha by Surajit Saha
March 9, 2023
in Linux
Reading Time: 5 mins read
0
How to Reboot Linux System with Command
1
SHARES
67
VIEWS
FacebookTwitterWhatsAppEmail

Most people are familiar with rebooting their Linux system with a few clicks of the mouse, but not everyone is as familiar with rebooting a Linux system from the command line. It may seem daunting, but learning; how to reboot Linux with a command can be an invaluable skill.

Imagine suddenly, the system goes down or GUI not responding. Now, you need to get it back up and running quickly. Knowing how to reboot the Linux system from the command line can save the day. In this guide, we will discuss how to reboot a Linux system with a command, so let’s begin.

Difference Between Rebooting and Restarting

Understanding the difference between rebooting and restarting is important when learning how to reboot a Linux system from the command line.

Rebooting is the process of shutting down the system and then starting it up again. Restarting is the process of shutting down the system and then starting it up again without shutting it down.

Rebooting is more thorough because it ends all ongoing activities or tasks on the computer. Restarting is less thorough because it leaves any running processes and unfinished tasks in place.

How to Reboot Linux System with Command

Linux is an open-source operating system widely used for various purposes, including servers, desktops, and embedded systems. As with any operating system, it is essential to know how to reboot Linux when necessary.

To reboot a Linux system with a terminal command, you must first open the terminal. The terminal is a command-line interface that allows you to interact with the Linux system using text commands. You can open the terminal by pressing “Ctrl + Alt + T” or check our guide on; how to open a Terminal on Ubuntu Linux.

Here is a list of ways you can use to reboot your Linux system with the Terminal:

1. Reboot Command

The straightforward method to reboot a Linux system is by using the reboot command. For that, open the terminal and run the following command:

sudo reboot

The command will reboot the system immediately. It is recommended to use this command only when necessary, as it does not provide any warning or prompt.

2. Shutdown Command

You can also use the “Shutdown” command to reboot your Linux system. For that, run the below command:

sudo shutdown -r now

The command will shut down the system and immediately reboot it. The -r option specifies that the system should reboot after shutting down, and the now option specifies that the shutdown should happen immediately.

3. INIT command

You can also use the init command. It is the first process executed by the kernel during the booting of a system. To reboot your system using the init command run the following terminal command:

sudo init 6

It is a legacy command that is used to reboot the system. In Linux, the init 6 command gracefully reboots the system running all the Kernel shutdown scripts first, before rebooting. 

The reboot command does a very quick reboot. It doesn’t execute any kill scripts, but just unmounts filesystems and restarts the system. 

Note:- sudo init 6 is not commonly used on modern Linux distributions.

4. Reboot Linux System with systemctl

You can also reboot your Linux system using the “systemctl” command. For that, run the following command on the Terminal:

sudo systemctl reboot

The command will reboot the system using the systemd service manager, the default system manager on many modern Linux distributions.

The above-mentioned four commands can reboot any Linux system.

Note:- It is important that rebooting a Linux system will close all running applications and processes, so save any unsaved work before initiating a reboot.

Conclusion

That’s it; this is how you can reboot a Linux system with a terminal command. Learning; how to reboot Linux with a command line can be a valuable skill. With practice, anyone can learn how to use the terminal to reboot the Linux system.

I hope you find this article helpful. If you liked the article, share it with your friends. If you have any queries, please do not hesitate to write them in the comment section below. We will surely reply to you.

Share1TweetSendSend
Previous Post

How to Download and Install WinRAR on Windows 11

Next Post

How to Open Terminal in Ubuntu Linux

Surajit Saha

Surajit Saha

A Cisco Certified Network Associate and a University of Kolkata graduate. Technical nerd by trade. Started out with computer software and hardware and has moved on to networking and telecommunications. Enjoys smart devices and smartphones. Shares a tremendous love for Cricket and Music.

Recommended Posts

How to Open Terminal in Ubuntu Linux
Linux

How to Open Terminal in Ubuntu Linux

March 11, 2023
How to Install Ubuntu on VMware Workstation Player in Windows 11
Windows 11

How to Install Ubuntu 22.04 LTS on VMware Workstation Player

February 23, 2023
How to Switch Between Java Version on Ubuntu Linux
Linux

How to Switch Between Java Version on Ubuntu Linux

March 2, 2023
How to Install SQL Developer in Ubuntu
Linux

How to Install SQL Developer in Ubuntu

February 18, 2023
How to Install Shotcut on Ubuntu
Linux

How to Install Shotcut Video Editor on Ubuntu 22.04

January 24, 2023
Install Openshot on Ubuntu
Linux

How to Install OpenShot Video Editor on Ubuntu 22.04

January 23, 2023

Leave a Reply Cancel reply

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

Recent Posts

How to Add Plugins and Extensions on VLC Media Player
How To

How to Add Plugins and Extensions on VLC Media Player

April 1, 2023
How to Run a Java Program Without IDE
Programming

How to Run a Java Program Without IDE?

March 30, 2023
thecoderworld

© 2018 - 2023 thecoderworld

Navigate Site

  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Advertise
  • Career

Follow Us

No Result
View All Result
  • Programming
  • Security
  • Tech
  • How To
  • Lists
  • Windows 11
  • Chromebook
  • Linux

© 2018 - 2023 thecoderworld