I want to list services currently installed in an ubuntu box. Also want to list the status of the listed services. Thanks.

There are a lot of ways to list services in a Linux or Ubuntu system. But If you also want to list services status "systemctl list-units" will work for your case perfectly.

Have you tried: sudo service --status-all. Good luck.

Posting Running Services Under SystemD in Linux
To list all stacked administrations on your framework (regardless of whether dynamic; running, left or fizzled, utilize the rundown units subcommand and - type switch with an estimation of administration.

Well there are 2 ways known to me:

  1. With systemctl:
    systemctl list-unit-files

  2. With service:
    service --status-all

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.