List systemd targets

systemctl list-unit-files '*.target' --user

This is useful when writing units and trying to decide what you want their dependencies to be.

For example you could set WantedBy=shutdown.target to have a unit run on shutdown of the system.