# 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:** 1\
**Showing post:** 28

<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:36pm UTC](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540/28 "2021-11-30T12:36:23Z")

</div>

> [@anon31549144](#):
>
> I think I’ve recently read somewhere you’re supposed to close all your applications before shutdown. Some Linux tut i can’t remember where.

There is no need to do so, but as I’ve said above, different applications may handle interrupts differently. Some will save their state to the drive and gracefully exit when they receive the terminate signal (`SIGTERM`), some won’t. And some will outright disobey the terminate signal and will have to be killed (with `SIGKILL`, which does not give them any chance to save their state).

So, it depends on what your desired outcome is.

* * *

On KDE Plasma, there is a also “save session” option that makes the window manager remember all running applications before terminating them so that they can be launched on the next startup (trying to restore their state, if possible). It will also run any scripts you may have in `~/.config/plasma-workspace/shutdown/`. This won’t happen if you shut down with the `shutdown` or `poweroff` commands.

If you’re interested in knowing how to shut down your computer from the terminal emulator on KDE Plasma in a way that is equivalent to using the GUI, read this post:

> [@\[Tip\] Logout of Plasma Session from the Terminal](https://forum.endeavouros.com/t/tip-logout-of-plasma-session-from-the-terminal/8699):
>
> Since this is a terminal-centric distro, you might want to logout from your Plasma session using the terminal. I just discovered this so I wanted to share it. This command does that: qdbus org.kde.ksmserver /KSMServer logout 0 0 1 If you replace 0 0 0 in that command with 1 0 1, it will display the logout window giving you the option to cancel it, shutdown or restart your computer. This does exactly the same thing as clicking on the Log out button, saves your session and everything. Of cours…

---

_[View the full topic](https://forum.endeavouros.com/t/is-there-a-safe-shutdown-like-on-windows/20540)._
