How to disable and enable GUI of debian 10

 How to disable and enable GUI of debian 10



To disable the GUI:


linux@debian:~$ sudo systemctl set-default multi-user.target

[sudo] password for linux: 

Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.


linux@debian:~$ sudo init 0


To re-enable the GUI:



linux@debian:~$ sudo systemctl set-default graphical.target

[sudo] password for linux: 

Removed /etc/systemd/system/default.target.

Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.



linux@debian:~$ sudo init 0

Post a Comment

0 Comments