what if i dont want gui in ubuntu 20.04

C++
$ sudo systemctl set-default multi-user
#command to disable GUI on boot hence upon the reboot, 
#the system will boot into multi user target:$ sudo systemctl set-default multi-user

Source

Also in C++: