UNIX

Shutdown

sudo systemctl halt

sudo systemctl poweroff

Restart

sudo reboot

sudo systemctl reboot

Runlevel

systemctl list-unit-files --type=target

systemctl list-units --type=target

Check

systemctl get-default

Change

To set the default at boot...

sudo systemctl set-default graphical.target

Rescue (single-user)

sudo systemctl rescue