Systemd44 commands
Systemd Cheat Sheet
Essential systemd commands for managing services, timers, journals, boot targets, and unit files.
Service Management
| Command | Description |
|---|---|
| Start a service |
| Stop a service |
| Restart a service |
| Reload config without restart |
| Enable service at boot |
| Disable service at boot |
| Show service status |
| Check if running |
| Check if enabled at boot |
Listing & Inspection
| Command | Description |
|---|---|
| List all loaded services |
| List running services |
| List failed units |
| List all service files |
| Show unit file contents |
| Show all service properties |
| Show dependency tree |
Journalctl (Logs)
| Command | Description |
|---|---|
| View service logs |
| Follow service logs |
| Logs from last hour |
| Last 50 log lines |
| Show only error messages |
| Logs since last boot |
| Check journal disk usage |
| Limit journal to 500 MB |
Timers (Cron Alternative)
| Command | Description |
|---|---|
| List active timers |
| List all timers |
| Enable and start timer |
| Timer unit: run daily |
| Timer unit: run at 3 AM |
| Timer unit: 5 min after boot |
Unit File Basics
| Command | Description |
|---|---|
| Edit unit file |
| Create override drop-in |
| Reload after unit file changes |
| Unit: main command to run |
| Unit: restart policy |
| Unit: delay between restarts |
| Unit: set env variable |
| Unit: working directory |
System State
| Command | Description |
|---|---|
| Show default boot target |
| Set CLI-only boot |
| Enter rescue mode |
| List user-level services |
| Show hostname and OS info |
| Show time and timezone info |