1/50
Looks like no tags are added yet.
What is systemd?
The system and service manager used by Arch
What process ID does the system init process have?
1
What is a systemd unit?
A resource or task that systemd manages
What does a .service unit manage?
A service process
What does a .timer unit do?
Schedules activation of another unit
What does a .socket unit do?
Listens and activates a service on demand
What does a .mount unit manage?
A filesystem mount
What is a target?
A named grouping of units
Which target usually provides a graphical login?
graphical.target
Which target provides a multi-user text system?
multi-user.target
Which command starts a service?
sudo systemctl start name
Which command stops a service?
sudo systemctl stop name
Which command restarts a service?
sudo systemctl restart name
Which command reloads a service's configuration if supported?
sudo systemctl reload name
Which command enables a service at boot?
sudo systemctl enable name
Which command disables a service at boot?
sudo systemctl disable name
Does enable by itself start a service immediately?
No
What does systemctl mask do?
Prevents a unit from being started
What reverses systemctl mask?
systemctl unmask
Which command tests whether a service is running?
systemctl is-active name
Which command tests whether it is enabled?
systemctl is-enabled name
Which command lists loaded units?
systemctl list-units
Which command lists installed unit files?
systemctl list-unit-files
Which command lists timers?
systemctl list-timers
Which command shows a unit file and its overrides?
systemctl cat name
Which command creates an override for a unit?
sudo systemctl edit name
Which command reloads unit definitions after manual edits?
sudo systemctl daemon-reload
Where do custom system units go?
/etc/systemd/system
Where do user-created user units usually go?
~/.config/systemd/user
What option makes systemctl manage user services?
--user
Which unit section defines the program to start?
[Service]
Which setting names the start command?
ExecStart
Which setting controls automatic restarting?
Restart
Which section controls how a unit is enabled?
[Install]
Which setting orders a unit after another?
After
Does After by itself require the other unit?
No
What is journald?
systemd's logging service
Which command shows all available journal logs?
journalctl
Which option follows new journal entries?
journalctl -f
Which option shows logs for one unit?
journalctl -u name
Which option shows the previous boot's logs, if retained?
journalctl -b -1
Which command lists recorded boots?
journalctl --list-boots
Which option shows kernel messages from the journal?
journalctl -k
Which option filters logs since today?
journalctl --since today
Which command shows journal disk usage?
journalctl --disk-usage
Which command reduces archived journal logs to a size?
sudo journalctl --vacuum-size=200M
Which command shows overall boot time?
systemd-analyze
Which command lists units by startup time?
systemd-analyze blame
Which command reboots the system?
systemctl reboot
Which command powers off the system?
systemctl poweroff