Linux 101 : Systemd services and their different types

To list the services running on a system using the systemd commands, we could use the below command:

Our services displayed above could have one of the below states:

  • enabled : When a service is enabled, we can start it, stop it, or deactivate it so it doesn't start at boot time.
  • disabled : services will not start automatically at system startup, but we can start them manually.
  • static : the unit file is a dependency of other unit files that can't be started or stopped manually.
  • masked : masking a service prevents it starting altogether.
To list the enabled services, we use:

To list the deactivated services, we use the following:

To list the masked services, we could use:


Leave as a comment: