How to List All Services in Linux Ubuntu 19.10 Operating System

Posted on

This article will present about how to list all the available services in the Linux operating system. In this context, it is in Linux Ubuntu 19.10 operating system. The execution of the command for listing all the services is very simple. Before going on to the execution command, in Ubuntu there are three types of way, method or mechanisms for managing services. There are the ‘System V init’, ‘Upstart init’ and ‘Systemd’. This article will focus on how to display the service available using the ‘servic’ comand. The Upstart init itself is no longer available since there is a replacement with systemd in 16.10. The indicator is simple, it is because no ‘initctl’ command avaiable since Linux Ubuntu 16.10. Although the command is no longer exist, listing the available service is still possible without ‘initctl’. In order to read more about the Upstart init, just the article in this link.

The following is the example of the command execution listing all the services in Linux Ubuntu 19.10 operating system using the ‘service’ command :

root@hostname:~# service --status-all
 [ + ]  acpid
 [ - ]  alsa-utils
 [ - ]  anacron
 [ - ]  apache-htcacheclean
 [ + ]  apache2
 [ + ]  apparmor
 [ + ]  apport
 [ + ]  avahi-daemon
 [ + ]  bluetooth
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  cups
 [ + ]  cups-browsed
 [ + ]  dbus
 [ + ]  gdm3
 [ + ]  grub-common
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  kerneloops
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ + ]  mysql
 [ + ]  network-manager
 [ + ]  nginx
 [ + ]  openvpn
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  postfix
 [ - ]  postgresql-12.1
 [ - ]  pppd-dns
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  saned
 [ - ]  speech-dispatcher
 [ - ]  spice-vdagent
 [ + ]  ssh
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ + ]  whoopsie
 [ - ]  x11-common
root@hostname:~# 

According to the output of the above command execution, there are the one with the ‘+’ representation indicating that those are running services. On the other hand, there are the one with the ‘-‘ representation which is indicating that those services are not running. If ‘initctl’ command is still available, it can also generate similar output as the above command execution. Moreover, if there is no ‘initctl’ command available, it will just end wih an output stating that ‘command not found’.

Leave a Reply