shutdown
Safely power off or reboot the system
TLDR
Power off immediately
SYNOPSIS
shutdown [options] [time] [message]
DESCRIPTION
shutdown brings the system down in a safe way. All logged-in users are notified, new logins are blocked, and running processes are signaled to terminate gracefully.
The time argument specifies when to shut down: now for immediate, +m for minutes from now, or hh:mm for a specific time. An optional message can be broadcast to all users.
PARAMETERS
-h, --halt
Halt the system after shutdown-P, --poweroff
Power off the system (default with -h)-r, --reboot
Reboot the system-c
Cancel a pending shutdown-k
Send warning message but don't actually shutdownnow
Execute immediately+_m_
Execute in m minutes_hh:mm_
Execute at specified time (24-hour format)
CAVEATS
Requires root privileges. Scheduled shutdowns can be cancelled with -c. On systemd systems, this command is typically a wrapper around systemctl poweroff/reboot.
HISTORY
The shutdown command originated in early Unix systems. It evolved from a simple system halt to a comprehensive tool for graceful system shutdowns with user notification.
