Operations 3 min read

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.

Open Source Linux
Open Source Linux
Open Source Linux
Master Linux Shutdown: Safely Power Off or Reboot Your System

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 now

Example 2 – Shutdown after 15 minutes with a message

# shutdown +5 "System will shutdown after 15 minutes"

Example 3 – Cancel a scheduled shutdown

# shutdown -c

Example 4 – Immediate reboot

# shutdown -r now

Example 5 – Reboot at a specific time (05:50)

# shutdown -r 05:50
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxSystem AdministrationShutdownReboot
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.