CentOS

How to Reboot CentOS 8 Using Command Line?

“Rebooting is the process by which a running computer system is restarted, either intentionally or unintentionally.

To learn more about the reboot, check this out: https://en.wikipedia.org/wiki/Reboot

Today, we will see how we can reboot CentOS 8. For this purpose, we will explore different commands that can be used. The commands are simple and easy to follow. We will use the CentOS command line (terminal) to run the commands.”

Without any further ado, let’s get started.

Reboot Guide

This section will show you different methods using which you can reboot CentOS 8:

Method 1: Using the “reboot” Command

The first method involves using the reboot command. To reboot CentOS 8, run the following command on the CentOS terminal:

reboot

You can also force a reboot with this command:

reboot --force

OR

reboot -f

Method 2: Using the “poweroff” Command

The other way you can reboot your system is by running the following poweroff command. The poweroff command is meant to shut down your system. But it can also be used to reboot the system if used like this:

poweroff --reboot

Method 3: Using the “shutdown” Command

The third command that can be used to reboot CentOS 8 is the shutdown command. To do that, run the command like this:

shutdown --reboot

OR

shutdown -r

Method 4: Using the “halt” Command

Another command that can be used to restart CentOS 8 is the halt command. To reboot your system, use halt like this:

halt --reboot

Method 5: Using the “telinit” Command

The final command that we will discuss is the telinet command. This command can also be used to reboot your CentOS 8 system. Execute the telinet command like this to reboot:

telinit 6

Make sure to add 6 in the command.

Conclusion

In today’s guide, we discussed 5 different commands that can be used to reboot CentOS 8 using the command line. The shutdown process starts after 1 minute, which is the default time interval.

We hope you liked the tutorial.

About the author

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.