Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

systemd and Linux Service Management Cheat Sheet

systemd and Linux Service Management Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-20
Next Topic: Ubuntu Cheat Sheet

systemd is the init system and service manager used by the majority of modern Linux distributions, running as PID 1 and managing the entire lifecycle of processes, sockets, timers, mounts, and more from boot to shutdown. It replaces SysVinit and Upstart by expressing system configuration as declarative unit files β€” INI-style text files that define services, timers, sockets, and other resources. The critical mental model is that everything in systemd is a unit, the dependency graph between units determines boot order and parallelization, and a single misconfigured After= or Wants= line can silently reorder startup in non-obvious ways β€” making systemd-analyze critical-chain an essential troubleshooting tool.

What This Cheat Sheet Covers

This topic spans 19 focused tables and 228 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: systemctl Service Control CommandsTable 2: systemctl Unit Management CommandsTable 3: Unit File Sections and LocationsTable 4: Service Type= ValuesTable 5: Dependency and Ordering DirectivesTable 6: Execution DirectivesTable 7: Environment and Variable DirectivesTable 8: Security Hardening DirectivesTable 9: Timer Unit DirectivesTable 10: Socket ActivationTable 11: journalctl Log FilteringTable 12: journalctl Output Formats and Log ManagementTable 13: journald.conf ConfigurationTable 14: systemd-analyze Boot Analysis CommandsTable 15: systemd Targets and System StateTable 16: User Services and Session ManagementTable 17: Resource Control Directives (cgroups v2)Table 18: Template Units, Specifiers, and Drop-in OverridesTable 19: Path Units (.path)

Table 1: systemctl Service Control Commands

systemctl is the primary interface for controlling services and other units at runtime. These commands operate on a running system immediately but do not persist behavior across reboots unless combined with enable.

CommandExampleDescription
start
systemctl start nginx.service
Starts a unit immediately; does not enable it to start at boot.
stop
systemctl stop nginx.service
Stops a running unit immediately.
restart
systemctl restart nginx.service
Stops then starts a unit; works even if the unit was not running.
reload
systemctl reload nginx.service
Sends the unit's ExecReload= command to reload config without stopping the process.
reload-or-restart
systemctl reload-or-restart nginx.service
Reloads if the unit supports it; falls back to full restart if it does not.
status
systemctl status nginx.service
Shows active state, recent journal entries, PID, cgroup, and runtime info.

More in Operating Systems and CLI

  • System Monitoring Cheat Sheet
  • Ubuntu Cheat Sheet
  • AWS CLI Cheat Sheet
  • File Permissions Cheat Sheet
  • Linux Package Management Cheat Sheet
  • Windows 11 Troubleshooting Cheat Sheet
View all 31 topics in Operating Systems and CLI