← All commands
Topic hub PowerShell Equivalents
Windows Linux PowerShell Equivalents Services

Windows PowerShell Get-Service equivalent in Linux

Shows loaded services and their current active, inactive or failed state.

Windows PowerShell Get-Service
Linux equivalents
Debian/Ubuntu apt + systemd
systemctl list-units --type=service
Fedora dnf + systemd
systemctl list-units --type=service
Arch pacman + systemd
systemctl list-units --type=service

Overview

What this command does

Shows loaded services and their current active, inactive or failed state.

Migration tip: Add --all to include inactive loaded services, or use list-unit-files to inspect startup enablement.

Practical tasks

Common use cases

List system services

Shows loaded services and their current active, inactive or failed state.

systemctl list-units --type=service

List active service units

systemctl list-units --type=service --all

Include inactive services

systemctl --failed

Show failed units

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

systemctl list-units --type=service
systemctl list-units --type=service --all
systemctl --failed

Walkthrough

Examples with explanations

systemctl list-units --type=service # list service units
systemctl list-units --type=service --all # include inactive services
systemctl --failed # show failed services

Reference

Common options and variations

Command or optionUse
systemctl list-units --type=serviceList active service units
systemctl list-units --type=service --allInclude inactive services
systemctl --failedShow failed units

Distro differences

Debian/Ubuntu vs Fedora vs Arch

systemd commands are mostly distribution-neutral, but package names and service unit names can differ.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu apt + systemd systemctl list-units --type=service Same systemctl/journalctl syntax on systemd-based Debian and Ubuntu systems.
Fedora dnf + systemd systemctl list-units --type=service Same command syntax; service names can differ by package.
Arch pacman + systemd systemctl list-units --type=service Same command syntax; enable services explicitly after package installation.

Keep learning

Related PowerShell Equivalents commands