How to restart or shut down the CentOS system?
To restart or turn off the CentOS system, you can follow these steps:
- Open a terminal window and login to the system as the root user or a user with sudo privileges.
- To restart the system, enter the following command and press the Enter key:
sudo reboot
The system will begin to restart.
- 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.