0

Is there is any way I can view systemd target's names only.

I know I can use:

systemctl --type=target

but its giving me other information as well like "load active", I only want name of running targets.

1 Answer 1

0

I don’t think systemctl on its own can produce this, but you can ask it for unformatted, undecorated output and filter that:

systemctl list-units --type=target --plain --no-legend | cut -f1 -d' '
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .