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
systemctl list-units --type=service
systemctl list-units --type=service
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 option | Use |
|---|---|
systemctl list-units --type=service | List active service units |
systemctl list-units --type=service --all | Include inactive services |
systemctl --failed | Show 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.
| Distribution | Package manager / base | Equivalent command | Difference 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