Close Menu
    Facebook X (Twitter) Instagram
    • About
    • Privacy Policy
    • Write For Us
    • Newsletter
    • Contact
    Instagram
    About ChromebooksAbout Chromebooks
    • News
      • Stats
    • AI
    • How to
      • DevOps
      • IP Address
    • Apps
    • Business
    • Q&A
      • Opinion
    • Gaming
      • Google Games
    • Blog
    • Podcast
    • Contact
    About ChromebooksAbout Chromebooks
    Linux

    How To Use ubuntu list services

    Dominic ReignsBy Dominic ReignsJanuary 10, 2026No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest

    Services in Ubuntu run continuously in the background to handle system operations and application functions. These processes maintain network connections, manage user sessions, and execute scheduled tasks. Access to service information enables effective system monitoring and troubleshooting.

    Ubuntu uses systemd as the default service manager. The systemctl command controls and monitors services through systemd. Earlier Ubuntu versions used init with the service command for service management.

    List All Ubuntu Services Using systemctl

    The systemctl command manages systemd services and displays unit files. A unit file contains configuration data for processes, dependencies, and execution order.

    Display all services with their current states:

    $ systemctl

    The output shows columns with service information:

    Column Description
    UNIT Service name managed by systemd
    LOAD Whether the unit loaded into memory
    ACTIVE Current activation state
    SUB Detailed unit status
    DESCRIPTION Brief service description

    List all service-type units:

    $ systemctl list-units --type service --all

    This command displays running, active, loaded, stopped, inactive, and failed services.

    List Running Services

    Filter output to show only running services:

    $ systemctl --type service --state running
    Note: Running services actively execute processes and consume system resources.

    List Active Services

    Display services in active state:

    $ systemctl --type service --state active

    Active services include running, exited, and waiting states.

    List Inactive Services

    View services not currently active:

    $ systemctl --type service --state inactive

    List Stopped Services

    Show services that completed execution:

    $ systemctl --type service --state exited

    Exited services ran successfully and terminated.

    Use service Command to List Services

    The service command runs SystemV init scripts from /etc/init.d. This utility starts, stops, and restarts services. All init scripts support start and stop operations.

    Display all services:

    $ service --status-all

    The output uses symbols to indicate service status. The [+] symbol marks running services. The [-] symbol marks stopped services.

    List Running Services Only

    Filter running services using grep:

    $ service --status-all | grep '\[ + \]'

    List Stopped Services Only

    Filter stopped services:

    $ service --status-all | grep '\[ - \]'
    Tip: Combine the service command with other utilities for advanced filtering and analysis.

    Count Total Services

    Count all services using grep with the -c option:

    $ service --status-all | grep -c ''

    Apply the same method to count running or stopped services by modifying the grep pattern.

    List Ubuntu Services from /etc/init.d Directory

    The service command retrieves data from /etc/init.d. List services directly from this directory:

    $ ls -l /etc/init.d/*

    This displays all init scripts stored in the directory.

    Warning: Modifying files in /etc/init.d affects service behavior and system stability.

    Alternative Methods to Monitor Services

    Additional commands provide service information through different approaches.

    Check Services with top Command

    The top command displays real-time process information including services:

    $ top

    Press q to exit the interface.

    Use htop for Enhanced Process View

    Install and run htop for an improved process monitoring interface:

    $ sudo apt install htop
    $ htop

    The tool provides color-coded output and interactive controls.

    FAQs

    Use systemctl list-units --type service --all to display all services including running, stopped, and failed states. This shows complete service information.

    Run systemctl --type service --state running to filter only active running services. This excludes stopped and inactive services from the output.

    The service command manages SystemV init scripts in /etc/init.d. It starts, stops, restarts services and displays their current status with symbols.

    Service files reside in /etc/init.d for SystemV init scripts and /lib/systemd/system for systemd unit files. The ls command lists these directories.

    Yes, use service --status-all to list services. Alternative tools include top, htop, and direct directory listing with ls /etc/init.d command.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr
    Dominic Reigns
    • Website
    • Instagram

    As a senior analyst, I benchmark and review gadgets and PC components, including desktop processors, GPUs, monitors, and storage solutions on Aboutchromebooks.com. Outside of work, I enjoy skating and putting my culinary training to use by cooking for friends.

    Related Posts

    How to Restart NGINX on Your Linux Server

    January 30, 2026

    How To Install NPM Linux

    January 26, 2026

    How To Check Linux List Processes

    January 24, 2026

    Comments are closed.

    Best of AI

    Make-A-Video Statistics 2026

    January 30, 2026

    Stable Video Diffusion User Trends And Statistics 2026

    January 29, 2026

    VALL-E Statistics 2026

    January 28, 2026

    StarCoder Statistics And User Trends 2026

    January 27, 2026

    BLIP-2 Statistics 2026

    January 23, 2026
    Trending Stats

    Google Penalty Recovery Statistics 2026

    January 30, 2026

    Search engine operators Statistics 2026

    January 29, 2026

    Most searched keywords on Google

    January 27, 2026

    Ahrefs Search Engine Statistics 2026

    January 19, 2026

    Pay Per Click Advertising Statistics 2026

    January 16, 2026
    • About
    • Write For Us
    • Contact
    • Privacy Policy
    • Sitemap
    © 2026 About Chrome Books. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.