How to check all the services running in Ubuntu

Run the following command to get the list of all the services which are running or are in active state:

systemctl --type=service --state=active

The output should look like this:

  UNIT                                                                   >
  accounts-daemon.service                                                >
  acpid.service                                                          >
  apparmor.service                                                       >
  apport.service                                                         >
  atd.service                                                            >
  blk-availability.service                                               >
  cloud-config.service                                                   >
  cloud-final.service                                                    >
  cloud-init-local.service                                               >
  cloud-init.service                                                     >
  console-setup.service                                                  >
  cron.service                                                           >
  dbus.service                                                           >
  finalrd.service