Master Linux Shutdown: Safely Power Off or Reboot Your System
This guide explains how to use the Linux shutdown command to safely power off or reboot a system, covering warning notifications, time specifications, available options, and practical examples for immediate, delayed, or scheduled shutdowns and reboots.
shutdown: Power Off or Reboot a Linux System
Function Description
The shutdown command safely powers off or reboots a Linux system. Before shutting down, it broadcasts a warning to all logged‑in users and freezes the login process, preventing new logins. It can shut down immediately, after a delay, or schedule a reboot.
Time Specification
The command accepts a time argument that can be an exact time (hh:mm) or a delay expressed as “+minutes”.
Command Syntax
shutdown [options] [parameter]Option Meanings
-h : Shut down the system
-r : Reboot the system
-c : Cancel a pending shutdown
-n : Do not invoke init; let shutdown handle it
-k : Send warning messages only, do not actually shut down
-t <seconds> : Delay between warning and shutdown
-f : Do not run fsck on reboot
-F : Run fsck on reboot
Examples
Example 1 – Immediate shutdown
# shutdown -h nowExample 2 – Shutdown after 15 minutes with a message
# shutdown +5 "System will shutdown after 15 minutes"Example 3 – Cancel a scheduled shutdown
# shutdown -cExample 4 – Immediate reboot
# shutdown -r nowExample 5 – Reboot at a specific time (05:50)
# shutdown -r 05:50Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
