Cheatography
https://cheatography.com
Understanding systemd and commands that can be used.
Systemd Units
Unit |
Extension |
Purpose |
Service |
|
Background service/daemon |
Target |
|
Group of units (runlevel replacement) |
Socket |
|
Socket activation |
Timer |
|
Scheduled task (cron alternative) |
Mount |
|
Automatically mount filesystem |
Automount |
|
Hardware devices |
Device |
|
Hardware devices |
Path |
|
Monitor file/directory changes |
Swap |
|
Swap device |
Scope |
|
External processes |
Slice |
|
Resource grouping |
systemctl list-units
-> Running units
systemctl list-unit-files
-> Installed unit files
|
Systemctl Utilities
Command |
Purpose |
|
View service status |
|
Start service |
|
Stop service |
|
Restart service |
|
Reload configuration |
|
Start at boot |
|
Check boot status |
|
Prevent service from starting |
|
Remove mask |
|
Reload unit files |
|
Switch target |
|
|
journalctl
Command |
Purpose |
|
View logs |
|
Logs for a service |
|
Recent errors |
|
Follow logs live |
|
Current boot logs |
|
|
Managing Unit States
State |
Meaning |
Active |
Currently running |
Inactive |
Not running |
Enabled |
Starts automatically at boot |
Disabled |
Does not start automatically |
Masked |
Cannot be started |
Failed |
Service encountered an error |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by hlhlhl