Systemd • 5 min read
Managing Services & Reading journalctl Logs
systemd is the default init system on modern Ubuntu and Debian distributions. Use systemctl to control services and journalctl to inspect logs.
Service Control
sudo systemctl status cron
sudo systemctl enable --now myservice
sudo systemctl daemon-reload
Inspecting & Cleaning Logs
journalctl -u myservice -n 50 --no-pager
journalctl -p err -b
sudo journalctl --vacuum-size=200M