The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 4,709β€…    Votes:  2β€…
Tags: command-line   power-management   shutdown  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1192164
Title: Is using the shutdown command to turn off the system safe?
ID: /2019/11/28/Is-using-the-shutdown-command-to-turn-off-the-system-safe_
Created: November 28, 2019
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


YES it is safe but…

Shutdown does more than simply flush unwritten data from RAM to disk. In some installations it can be setup to run custom jobs:

But as an answer here points out:

The shutdown halt option (designated by shutdown -h in your question) does flush all the buffers and safely unmount the disks but it doesn’t actually turn off the machine. To do that use:

poweroff

halt means flush buffers, unmount drives, close all processes in a
graceful way. But not power off (though some systems may power off
anyway). So the hardware is still provided with power.

After halt a hard power off (pressing the power button or unplugging
the power supply) will not damage the system, because it is already
halted in a graceful way.

⇧ When will xrandr version 1.5.1 be available in Ubuntu? SMART data self test is greyed out in Disks?  β‡©