How to restart or shut down the CentOS system?

To restart or turn off the CentOS system, you can follow these steps:

  1. Open a terminal window and login to the system as the root user or a user with sudo privileges.
  2. To restart the system, enter the following command and press the Enter key:
sudo reboot

The system will begin to restart.

  1. To shut down the system, enter the following command and press Enter key:
sudo shutdown -h now

The system is about to shutdown.

Please make sure to save all unsaved work before executing the restart or shutdown command to prevent data loss.

广告
Closing in 10 seconds
bannerAds