How to exit and enter X session?

Here, in this question from the link below, @generix told me to type this command below to turn off the graphics.

sudo systemctl isolate

I did that and entered TTY mode, but to get back to normal I had to restart the computer.

How do I do this without having to give the reboot command?

I’m using the latest version of Ubuntu (22.04).

sudo systemctl isolate
sudo systemctl isolate

Yes friend, but this is to turn the graphics off, and I want to know what command to turn them on again.

multi-user.taget turns graphics off turns graphics on.

Ah yes, friend, now I understand. I did this and it worked.

Thank you very much!

As I’m a newbie Linux user, I don’t know the commands yet.