Insight: Linux Shutdown Command Tutorial For Beginners
This tutorial is targeted for the beginner level of Linux users. We are going to demonstrate the various Linux shutdown command tutorial for beginners.
Linux Shutdown Command Tutorial For Beginners
Linux Shutdown Command Syntax
shutdown [OPTIONS] [TIME] [MESSAGE]
In above command syntax, Options refers to various options such as power-off, reboot or halt. Time argument refers to the time when the shutdown process will take effect. Message argument refers to the message to display when executing shutdown command.
After running above command, shut down process starts after 1 minute, which is the default time interval.
Shutdown After Specific Time
Let’s see the Linux shutdown example to shutdown a system after specific time.
sudo shutdown 10:00
Shutdown process will take place at 10.00 am.
Run the following command to shutdown your system after 20 minutes.
sudo shutdown +20
Run the following command to shutdown your system immediately.
sudo shutdown now
Linux Shutdown Command With Custom Message:
Run the following command to shutdown your system by displaying specific message. Following command will shutdown your computer after 10 minutes by displaying the “Network Reboot” message.
sudo shutdown +10 "Network Reboot"
Cancel Scheduled Linux Shutdown Command:
sudo shutdown -c
Canceling with message.
sudo shutdown -c "Canceling"
Reboot Linux Through Command
sudo shutdown -r
Reboot Linux by displaying message:
shutdown -r +10 "Network upgrade"
Let us know if there is any error in this tutorial.