CentOS Reboot

29/12/2020
For every system, rebooting is an essential part.  Reboot is essentially turning off the computer completely and then, starting the system from scratch. In certain situations, rebooting is a must. For example, on the Linux system, the kernel update or other critical updates/patches. In short, rebooting is a very important thing to do in today’s modern computing age.

Are you on CentOS? CentOS is the playground for new RHEL users as it offers the same experience and feel of the enterprise environment where there are lots of works ongoing every single second. For such a busy system, sometimes, rebooting becomes a must. In this tutorial, we’ll be checking out the reboot methods for your CentOS.

Rebooting CentOS

  • Reboot

The simplest thing to do is fire up the terminal and run the following command –

reboot

This command will reboot the entire system. It can take some time for rebooting as there might be other users and processes running and the system will wait for them to terminate.

If you’re in need of a forced reboot, then add the “-f” flag.

reboot -f

  • Shutdown

Rebooting is also possible using the “shutdown” command. For that purpose, use the “-r” flag with “shutdown” –

sudo shutdown -r +10 “Restart in 10 minutes”

Note – the command requires “root” privilege to run.

Here, you’ll notice a couple additional parts in the command. Let’s discuss them.

  • +10 : Gives the system users 10 min time for performing all the pending actions as the system is going to restart itself after 10 minutes starting the count from running the command.
  • “<string” : This part is for showing a warning message to all the users.

Enjoy!

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

[MariaDB Replication]Giới thiệu về MariaDB Replication Master-Slave

Với các cơ sở dữ liệu có nhu cầu lưu trữ lớn thì đòi hỏi về tính toàn vẹn, không bị...
30/12/2020

[Snort] Hướng dẫn cài đặt snort

Snort là một hệ thống phát hiện, phòng ngừa xâm nhập hệ thống (IDS/IPS) mã nguồn mở được viết...
30/12/2020

HOW TO FIX CENTOS 6 ERROR: YUMREPO ERROR: ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE

In this article I will show how to fix CentOS 6 error: YumRepo Error: All mirror URLs are not using ftp, http[s] PROBLEM When...
15/01/2021
Bài Viết

Bài Viết Mới Cập Nhật

Mua proxy v4 chạy socks5 để chơi game an toàn, tốc độ cao ở đâu?
18/05/2024

Thuê mua proxy Telegram trọn gói, tốc độ cao, giá siêu hời
18/05/2024

Thuê mua proxy Viettel ở đâu uy tín, chất lượng và giá tốt? 
14/05/2024

Dịch vụ thuê mua proxy US UK uy tín, chất lượng số #1
13/05/2024

Thuê mua proxy Việt Nam: Báo giá & các thông tin MỚI NHẤT
13/05/2024