This question already has an answer here:
I have an AWS Ubuntu machine.
I want to find out which desktop GUI environment is installed and running on my Ubuntu machine.
Every time I'm logging into Ubuntu I'm getting the GNOME environment. I want to uninstall it and install
How can I do this?