list services running ubuntu systemctl code example
Example 1: ubuntu list running services
To check all running services
service --status-all | grep '\[ + \]'
To check all services (running & non running)
service --status-all
Example 2: ubuntu systemctl list services
systemctl list-units --type=service