Do note that most of these commands will require a certain level of privilege either as superuser or with sudo to be executed successfully since rebooting a system is an administrative task and for a multi-user system or server running critical processes, reboot or shutdown is a disruptive activity. A normal system should respond to any command while a degraded server may need to be rebooted forcefully. This could be due to regular maintenance activity like OS patching or due to some hardware failure that requires a system to be powered down for maintenance.Ī Linux system offers several different ways to reboot or shut down the server. Requests that the system be powered off after it has been brought downĬancels a running shutdown.As a Sysadmin, one of the frequent activities is to reboot or power off servers. Requests that the system be halted after it has been brought down Requests that the system be either halted or powered off after it has been broughtdown, with the choice as to which left up to the system Requests that the system be rebooted after it has been brought down You can cancel the running shutdown by using -c option as, The system is going down for reboot in 573 minutes! Similar to shutdown (halt), you also schedule a reboot at a specified time as shown below. The system is going down for halt in 575 minutes! It sends the following message immediately to all terminals. Scheduling the shutdown with 24 hour format System is going down for replacement of primary memory # shutdown -h now 'System is going down for replacement of primary memory' Along with the system message, your message will be appended in the broadcast as shown below. You can also displays your own custom shutdown message. Shutdown the machine with user defined message It notifies all the logged in users about the system reboot. You can reboot the machine immediately using the following command. It notifies all the logged in users about the system going down, and shuts down the machine. You can shutdown the machine immediately using the following command. Only root user can execute shutdown command.ĥ shutdown Examples Shutdown the machine immediately You can shutdown the machine immediately, or schedule a shutdown using 24 hour format.Īfter bringing down the system, shutdown command halts or reboots the system according to the option that is specified.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |