check for running services in ubuntu 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: allintext:ubuntu services status
service --status-all