Is there an easy way to list all systemd masked units?
I can think of:
ls -l /etc/systemd/system/* | grep /dev/null
Or (for unit names only):
ls -l /etc/systemd/system/* | grep /dev/null | cut -d' ' -f12 | awk -F'/' '{ print $(NF) }'
Is there a clearer way?
The
--state
option would do the job