Managing Linux using systemd Cheat Sheet

A Software › Linux cheat sheet in English by hlhlhl

Understanding systemd and commands that can be used.

497 views 108 downloads 5 Aug 2026 History

Systemd Units

Unit
Extension
Purpose
Service
.service
Background servic­e/d­aemon
Target
.target
Group of units (runlevel replac­ement)
Socket
.socket
Socket activation
Timer
.timer
Scheduled task (cron altern­ative)
Mount
.mount
Automa­tically mount filesystem
Automount
.automount
Hardware devices
Device
.device
Hardware devices
Path
.path
Monitor file/d­ire­ctory changes
Swap
.swap
Swap device
Scope
.scope
External processes
Slice
.slice
Resource grouping
systemctl list-units -> Running units
systemctl list-u­nit­-files -> Installed unit files

Systemctl Utilities

Command
Purpose
systemctl status
View service status
systemctl start
Start service
systemctl stop
Stop service
systemctl restart
Restart service
systemctl reload
Reload config­uration
systemctl enable
Start at boot
systemctl is-enabled
Check boot status
systemctl mask
Prevent service from starting
systemctl unmask
Remove mask
systemctl daemon­-reload
Reload unit files
systemctl isolate
Switch target

journalctl

Command
Purpose
journalctl
View logs
journalctl -u sshd
Logs for a service
journalctl -xe
Recent errors
journalctl -f
Follow logs live
journalctl -b
Current boot logs

Managing Unit States

State
Meaning
Active
Currently running
Inactive
Not running
Enabled
Starts automa­tically at boot
Disabled
Does not start automa­tically
Masked
Cannot be started
Failed
Service encoun­tered an error

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.