Published: July 22, 2026
Read: 9 min
In: Technology & Development

Written by

Reviewed by

Last updated: June 27, 2023

Expert verified

SVG Image

TL;DR

To list all services in Ubuntu, you can try these four methods:

  1. Systemctl Command: List all services in a tabular format, including their status, unit name, and description.
  2. Service Command: List services along with their status, denoted by [ + ] for running services and [ – ] for stopped services.
  3. Init.d Directory: List services by examining the script files in the init.d directory.
  4. ls System Directory: List all systemd service unit files and related files in the /etc/systemd/system directory.

Listing services in Linux offers several benefits, including improved system understanding and monitoring, enhanced troubleshooting and issue resolution, and streamlined service management. However, users may encounter common errors such as “Service Command Not Found,” incomplete or missing service information, and incorrect service names or syntax. Understanding and addressing these errors is crucial for efficient service listing and effective system administration.

Continue reading the article below to learn different methods to list all services in Ubuntu, the benefits of listing services, and common errors with possible solutions.

Knowing how to list all services in Ubuntu is a fundamental skill that allows you to gain valuable insights into the components running on your machine. By exploring the intricacies of service listing, you not only gain a comprehensive overview of your system’s functionalities but also empower yourself to manage, troubleshoot, and optimize its performance effectively. In this article, I will explore different methods to list all services and the benefits it brings. I will also discuss some common errors with possible solutions equipping you with the knowledge to take control of your Ubuntu environment with confidence.

How to List All Services in Ubuntu

To list all services in Ubuntu, you have multiple methods at your disposal. The systemctl command in Ubuntu provides a straightforward and efficient way to retrieve a comprehensive list of services, their status, and additional details. The service command offers a simpler alternative, while the init.d directory allows for the manual examination of service files. Additionally, exploring the /etc/systemd/system directory unveils systemd service unit files and their configurations.

1. Systemctl Command

The systemctl command is a powerful tool for managing services in Ubuntu. It provides a straightforward and efficient way to list services, their status, and other details. Follow these steps:

  1. Open a Terminal in Ubuntu.
opening terminal 22
  1. Type the following command:

<strong>systemctl list-units --type=service</strong>
  1. This command lists all services in a tabular format, including their status, unit name, and description.
listing system services
  1. To filter services based on their status, you can use flags like –state=active, --state=inactive, or –state=failed.
listing inactive system services

2. Service Command

Another method to list services in Ubuntu is by using the service command. Although systemctl is preferred, the service command can still be useful in certain situations. It offers a simpler way to list services and their statuses in Ubuntu. Here’s how you can do it:

  1. Access the command window and type the following command:

<strong>service --status-all</strong>
  1. This command provides a list of services along with their status, denoted by [ + ] for running services and [ – ] for stopped services.
listing all running and stopped services
  1. To list the details of a specific service, use the following command:

<strong>service service-name status</strong>

Replace service-name with the name of the service you want to check.

viewing details of a specific service

3. Init.d Directory

The init.d directory contains script files responsible for managing services in Ubuntu. By examining this directory, you can list services and gain insights into their configuration. Follow these steps:

  1. Launch your Terminal window.
  2. Navigate to the init.d directory by typing the following command:

<strong>cd /etc/init.d</strong>
  1. Use the ls command to list all the files in the directory.
  2. Each file in the init.d directory corresponds to a service. You can view the details of a particular service by opening its respective file.
listing files containing details of services

4. Using the ls System Directory

Another method to list all services in Ubuntu is by exploring the /etc/systemd/system directory. This directory contains systemd service unit files that define and configure various services on your system. Here’s how you can use this method:

  1. Open your command prompt and navigate to the systemd system directory by typing the following command: