sudo systemctl start nginxStarts the service right away but does not enable it on boot.
Core systemctl commands, unit inspection, service lifecycle management, dependencies, and operational workflows.
Start, stop, restart, reload, and inspect services.
sudo systemctl start nginxStarts the service right away but does not enable it on boot.
sudo systemctl stop nginxStops the active unit.
sudo systemctl restart nginxUseful after config or code changes.
sudo systemctl reload nginxOnly works for services that implement reload.
sudo systemctl reload-or-restart nginxSafe operational convenience command.
systemctl status nginxDisplays high-level service health and recent logs.
systemctl is-active nginxUseful in scripts and health checks.
systemctl is-failed nginxGood for automation and troubleshooting.
Control startup behavior and boot-time activation.
sudo systemctl enable nginxCreates the appropriate symlinks so the service starts at boot.
sudo systemctl disable nginxPrevents the service from starting automatically.
sudo systemctl enable --now nginxCommon operational shortcut.
sudo systemctl disable --now nginxUseful during maintenance or decommissioning.
sudo systemctl mask nginxStrongest disable. Even manual starts are blocked.
sudo systemctl unmask nginxRequired before the service can start again.
systemctl is-enabled nginxReturns enabled, disabled, masked, or other states.
Discover loaded units, failed units, and service metadata.
systemctl list-unitsGeneral entry point for discovering what's running.
systemctl list-units --type=serviceUseful for service inventory and troubleshooting.
Show loaded and unloaded service files.
systemctl list-unit-files --type=serviceDisplays enablement states for installed service definitions.
systemctl --failedOne of the fastest ways to spot broken units.
systemctl show nginxMachine-friendly property view for scripts or deep inspection.
systemctl show nginx -p ActiveState -p SubStateHelpful in shell scripts and monitoring checks.
Show the unit definition actually used by systemd.
systemctl cat nginxShows vendor unit plus override snippets.
systemctl status sshdThe status output often includes docs references and last log messages.
Understand ordering, wants, requires, and targets.
systemctl list-dependencies nginxUseful to understand related services and startup order.
systemctl list-dependencies --reverse network-online.targetGood for impact analysis.
systemctl get-defaultOften graphical.target or multi-user.target.
sudo systemctl set-default multi-user.targetPersists the default startup target.
sudo systemctl isolate rescue.targetCan stop unrelated units to reach the target state.
Reload manager state and reset failures.
Reload unit files after changes.
sudo systemctl daemon-reloadRun this after editing or creating unit files.
sudo systemctl daemon-reexecAdvanced maintenance action; not needed for normal unit edits.
sudo systemctl reset-failedUseful after fixing a broken service.
sudo systemctl daemon-reload && sudo systemctl restart myappTypical operator sequence after editing a custom unit.
Reboot, halt, poweroff, rescue, and emergency mode.
sudo systemctl rebootPreferred systemd-based reboot command.
sudo systemctl poweroffStops services cleanly before poweroff.
sudo systemctl haltLess common than poweroff or reboot.
sudo systemctl rescueUseful for maintenance with minimal services.
sudo systemctl emergencyMost minimal recovery environment.