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

Windows PowerShell Restart-Service equivalent in Linux

Stops and starts a systemd service so configuration or runtime state is reloaded.

Windows PowerShell Restart-Service
Linux equivalents
Debian/Ubuntu apt + systemd
sudo systemctl restart SERVICE
Fedora dnf + systemd
sudo systemctl restart SERVICE
Arch pacman + systemd
sudo systemctl restart SERVICE

Overview

What this command does

Stops and starts a systemd service so configuration or runtime state is reloaded.

Migration tip: Some daemons support reload, which applies configuration without a full restart or connection interruption.

Practical tasks

Common use cases

Restart a service

Stops and starts a systemd service so configuration or runtime state is reloaded.

sudo systemctl restart nginx

Restart a service

sudo systemctl reload nginx

Reload configuration when supported

sudo systemctl reload-or-restart nginx

Reload or fall back to restart

Ready to run

Copyable Linux commands

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

sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl reload-or-restart nginx

Walkthrough

Examples with explanations

sudo systemctl restart nginx # restart a service
sudo systemctl reload nginx # reload configuration
sudo systemctl reload-or-restart nginx # choose reload when possible

Reference

Common options and variations

Command or optionUse
sudo systemctl restart nginxRestart a service
sudo systemctl reload nginxReload configuration when supported
sudo systemctl reload-or-restart nginxReload or fall back to restart

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

Keep learning

Related PowerShell Equivalents commands