Control the systemd init system and service manager.
medium risk
systemctl manages service lifecycle (start/stop/restart/reload), enables services to start at boot, and queries status with recent logs. Always verify service status after restart in automated scripts.
systemctl status nginxCheck nginx service status, PID, and recent log lines · explain & risk-check →systemctl restart nginx && systemctl is-active nginxRestart nginx and confirm it's running · explain & risk-check →systemctl enable --now dockerEnable Docker at boot AND start it immediately · explain & risk-check →Use `systemctl list-units --type=service --state=failed` to see all failed services — great for post-reboot health checks.
Reference text is hand-written and may be incomplete — check man systemctl for your version. Test destructive commands on a non-production system first.