How kill gui desktop?

If I’m getting this question right, then the easiest way to do this is just to log out of the desktop session and then log back in.

In Linux, a desktop environment runs on top of a display server (name it Xorg or Wayland).

If you log out, the display server session ends and then a desktop manager comes in. When you log in, the desktop manager starts the display server, which in turn starts the desktop environment.

Further reads:

https://wiki.archlinux.org/title/KDE

PS. This was asked before and a simple search would give you an answer. See below:

2 Likes