![]() ![]() To learn more about shutdown, visit the shutdown man ![]() The shutdown command allows you to halt, power-off and reboot your Linux system. sudo shutdown -c "Canceling the reboot" Conclusion # When canceling a scheduled shutdown, you cannot specify a time argument, but you can still broadcast a message that will be sent to all users. If you have scheduled shutdown and you want to cancel it, you can use the -c argument: sudo shutdown -c The command above will reboot the system after 5 minutes and broadcast Updating kernel. You can also specify a time argument and a custom message: shutdown -r +5 "Updating kernel" To reboot the system, use the -r argument: sudo shutdown -r It is important to mention that when specifying a custom wall message, you must specify a time argument too. The following example, will shut down the system in 30 minutes from now and notify the users that a hardware upgrade will be performed: sudo shutdown +30 "Hardware upgrade" To broadcast a custom message along with the standard shutdown notification type your message after the time argument. To shut down your system immediately you can use +0 or its alias now: sudo shutdown now How to Broadcast a Custom Message # The following example will schedule system shutdown in 10 minutes from now: sudo shutdown +10 How to Shutdown the System Immediately # The following example will schedule system shutdown at 11 A.M: sudo shutdown 11:00 It can be an absolute time in the format hh:mm and relative time in the format +m where m is the number of minutes from now. The time argument can have two different formats. How to Shutdown the System at a Specified Time # ![]() The shutdown process starts after 1 minute, which is the default time interval. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |