Display active but disabled systemd services. Use the following script to display active but disabled services. $ while read -r line; do unit=$(echo $line | awk '{print $1}') if [ "$(systemctl is-enabled $unit 2>/dev/null)" == "disabled" ]; then echo "Service $unit is active but disabled" fi done <
↧