← All commands
Topic hub Services & Processes
Windows Linux Services & Processes Services

Windows sc query equivalent in Linux

Shows all installed services and whether they are running, stopped, or failed.

Windows sc query
Linux equivalents
Debian/Ubuntu apt + systemd
systemctl list-units
Fedora dnf + systemd
systemctl list-units
Arch pacman + systemd
systemctl list-units

Overview

What this command does

Shows all installed services and whether they are running, stopped, or failed.

Migration tip: Use --state=failed to quickly see what's broken. The systemctl list-unit-files command shows which services are enabled to start at boot.

Practical tasks

Common use cases

List all services and their status

Shows all installed services and whether they are running, stopped, or failed.

systemctl list-units --type=service

All active services

systemctl list-units --state=failed

Failed services only

systemctl list-unit-files

All installed services + enabled status

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 --state=failed
systemctl list-unit-files
systemctl list-units --type=service | grep ssh

Walkthrough

Examples with explanations

# Windows: sc query type= all
systemctl list-units --type=service   # running services
systemctl list-units --state=failed  # what's broken?
systemctl list-unit-files             # all + boot status

# Filter by name:
systemctl list-units --type=service | grep ssh

Reference

Common options and variations

Command or optionUse
systemctl list-units --type=serviceAll active services
systemctl list-units --state=failedFailed services only
systemctl list-unit-filesAll installed services + enabled status
service --status-allOld-style service list

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 Same systemctl/journalctl syntax on systemd-based Debian and Ubuntu systems.
Fedora dnf + systemd systemctl list-units Same command syntax; service names can differ by package.
Arch pacman + systemd systemctl list-units Same command syntax; enable services explicitly after package installation.

Keep learning

Related Services & Processes commands