OK, so how do we boot into a specific target?
Well, we have already seen part of it.
On the GRUB2 boot prompt, you use systemctl.unit
is whatever.target.
And that will bring you into a specific target.
Now, if you want to change between targets
on a running system, you can use systemctl isolate whatever.target
or systemctl start.
Now, the thing is systemctl start
is convenient if you go from an earlier target
to a later target.
So you go from multi-user target to graphical target.
You need to add some units.
And systemctl start is going to do that for you.
If you want to go from graphical target to multi-user target,
you need to remove some units.
And then systemctl isolate is convenient.
Let me show you.
So systemctl isolate multi-user.target is doing what?
Well, it removes everything that we don't need in the new target.
And it's showing me the login prompt.
And then I'm in my multi-user target.