# Is there a "safe shutdown" like on Windows?

**URL:** <https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540>\
**Category:** Newbie\
**Created:** [November 30, 2021, 11:23am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540 "2021-11-30T11:23:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 11:23am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/1 "2021-11-30T11:23:12Z")

</div>

Coming from Windows, I know that on Windows there is a “safe shutdown” for Windows. This means that any applications that are opened are safely closed before the PC shutsdown.

Unfortunately on Linux it seems to abruptly shutdown if you shutdown the PC.

Is there some safe shutdown thing I could install or something?

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [November 30, 2021, 11:26am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/2 "2021-11-30T11:26:56Z")

</div>

Yes, there is [SysRq](https://forum.endeavouros.com/t/tip-enable-magic-sysrq-key-reisub/7576)

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 11:35am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/3 "2021-11-30T11:35:07Z")

</div>

```auto
systemctl shutdown now

```

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 11:36am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/4 "2021-11-30T11:36:37Z")

</div>

Is it possible to map that to xfce?

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 11:38am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/5 "2021-11-30T11:38:13Z")

</div>

How are you shutting down now?

> [@unix\_lover](#):
>
> Unfortunately on Linux it seems to abruptly shutdown if you shutdown the PC.

What do you mean by “it seems”? What are your seeing exactly making you think it’s shutting down abruptly? Please post command and log.

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 11:40am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/6 "2021-11-30T11:40:23Z")

</div>

> [@unix\_lover](#):
>
> Is it possible to map that to xfce?

I would probably use the shutdown icon in the menu or type into terminal. It takes like .3 seconds especially since I almost always have a terminal open

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [November 30, 2021, 11:42am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/7 "2021-11-30T11:42:34Z")

</div>

Does having a drop-down terminal ‘live’ on the hotkey count as having a terminal open? **reboot = shutdown -r now** 😁

BTW, I think the default shutdown in Linux is a ‘safe shutdown’ - with the possible exception of mounted USB drives…

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 11:42am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/8 "2021-11-30T11:42:58Z")

</div>

In xfce you can always setup any terminal command to a key binding as well. It’s very simple and in your shortcuts.

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 11:45am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/9 "2021-11-30T11:45:03Z")

</div>

> [@anon63071375](#):
>
> > [@unix\_lover](#):
> >
> > Unfortunately on Linux it seems to abruptly shutdown if you shutdown the PC.
> 
> What do you mean by “it seems”? What are your seeing exactly making you think it’s shutting down abruptly? Please post command and log.

I really really want to know the answer to this though. This is critical.

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [November 30, 2021, 11:46am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/10 "2021-11-30T11:46:58Z")

</div>

My DE always tells me that there’s an open application with unsaved data before being logged out, so I don’t know what OP is referring to. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![anon31549144](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@anon31549144](https://forum.endeavouros.com/u/anon31549144)\
**Post date:** [November 30, 2021, 11:49am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/11 "2021-11-30T11:49:49Z")

</div>

I wonder if I’m doing it wrong. I shut down my computer with the command `poweroff` and `reboot` (I have them bound to a key combo). Watchdog occasionally hangs waiting for some process or the other, but other than that it’s pretty fast (1-2s). I don’t get asked about open windows.

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 11:53am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/12 "2021-11-30T11:53:41Z")

</div>

What de are you using?

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 11:54am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/13 "2021-11-30T11:54:35Z")

</div>

on xfce

![image](https://forum.endeavouros.com/uploads/default/original/3X/1/2/1285200f3c809828b487e60030fc6527784fc7ec.png)

I go here and then I go and click on shutdown.

not too sure where I could get the log.

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 11:55am UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/14 "2021-11-30T11:55:49Z")

</div>

even if I ran `poweroff` via terminal?

---

<div class="post-metadata">

**Author:** ![anon63071375](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@anon63071375](https://forum.endeavouros.com/u/anon63071375)\
**Post date:** [November 30, 2021, 12:01pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/15 "2021-11-30T12:01:44Z")

</div>

> [@unix\_lover](#):
>
> I go here and then I go and click on shutdown.

You haven’t answered the important question. This is what you need to answer. You’re posting and asking us to look into this perceived problem. WHY?

> [@anon63071375](#):
>
> What do you mean by “it seems”? What are your seeing exactly making you think it’s shutting down abruptly? Please post command and log.

---

<div class="post-metadata">

**Author:** ![anon31549144](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@anon31549144](https://forum.endeavouros.com/u/anon31549144)\
**Post date:** [November 30, 2021, 12:08pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/16 "2021-11-30T12:08:56Z")

</div>

> [@unix\_lover](#):
>
> on xfce
> 
> ![image](https://forum.endeavouros.com/uploads/default/original/3X/1/2/1285200f3c809828b487e60030fc6527784fc7ec.png)
> 
> I go here and then I go and click on shutdown.
> 
> not too sure where I could get the log.

Hey what do you use as a whatsapp client? I’m having problems with mine.

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [November 30, 2021, 12:14pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/17 "2021-11-30T12:14:08Z")

</div>

Perhaps OP is not used to how quickly Linux can properly shutdown open apps without problems? 1-2 seconds is usually enough on my system to shut down. As posted above I usually type reboot to effect a shutdown painlessly (and only if something updated that would be a good idea to reboot for!)

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 12:17pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/18 "2021-11-30T12:17:39Z")

</div>

I use whatsappqt, try that it works quite well 🙂

---

<div class="post-metadata">

**Author:** ![unix\_lover](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unix_lover/32/5462_2.png) [@unix\_lover](https://forum.endeavouros.com/u/unix_lover)\
**Post date:** [November 30, 2021, 12:18pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/19 "2021-11-30T12:18:32Z")

</div>

Its quite interesting mate how much quicker it is.

Does `poweroff` command also shut things safely?

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [November 30, 2021, 12:19pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/20 "2021-11-30T12:19:34Z")

</div>

What do you mean by “safely”?

What you should never do is cut the power to your PC or hard reset using the button on the computer’s case, as that may cause filesystem corruption. But any other normal means of shutting down is safe, including the `poweroff` command (which is just a symlink to `systemctl`) or using the GUI button (which is a bit gentler on some DE’s as it logs you out of your GUI session and then runs the `systemctl` command).

[Next page](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540.md?page=2)
