How kill gui desktop?

Hi how can I kill GUI desktop
I’m using KDE

Then how to restart?

I mean when I’m using VirtualBox I like to use only that

and maybe some other process that I don’t need at the moment to get the maximum performance with the virtual OS

pd: when I was using windows I just kill explorer.exe then no GUI
then restart explorer.exe

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:

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


To restart KDE:

  • Open konsole

  • Execute:

    kquitapp5 plasmashell && kstart5 plasmashell 


kill SomeOtherProcess