← All commands
Topic hub Services & Processes
Windows Linux Services & Processes Expanded guide 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

On Windows, "sc query" is used to list all services and their status. On Linux, the closest practical mapping shown here is "systemctl list-units". Shows all installed services and whether they are running, stopped, or failed. This reference is grouped under Services & Processes → Services.

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

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows sc query maps to systemctl list-units for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

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

The command "systemctl list-units" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses apt + systemd; Fedora uses dnf + systemd; Arch uses pacman + systemd.

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