Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 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: tar gzip zip Archive and Compression Tools 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
  • tar gzip zip Archive and Compression Tools Cheat Sheet
  • AWS CLI Cheat Sheet
  • iptables Legacy Linux Firewall Reference Cheat Sheet
  • macOS Usage Cheat Sheet
  • System Administration Cheat Sheet
View all 51 topics in Operating Systems and CLI