Systemd Commands
Systemctl and journalctl commands for service management.
Service Control
systemctl start service.serviceStart a service
systemctl stop service.serviceStop a service
systemctl restart service.serviceRestart a service
systemctl reload service.serviceReload service configuration
systemctl status service.serviceShow service status
systemctl enable service.serviceEnable service at boot
systemctl disable service.serviceDisable service at boot
systemctl is-enabled service.serviceCheck if service is enabled
systemctl is-active service.serviceCheck if service is running
Listing & Viewing
systemctl list-unitsList all loaded units
systemctl list-units --type=serviceList all services
systemctl list-units --state=runningList running units
systemctl list-units --failedList failed units
systemctl list-unit-filesList all unit files
systemctl list-dependencies service.serviceShow service dependencies
systemctl list-socketsList socket units
systemctl list-timersList timer units
System State
systemctl rebootReboot the system
systemctl poweroffPower off the system
systemctl suspendSuspend the system
systemctl hibernateHibernate the system
systemctl hybrid-sleepHybrid sleep mode
systemctl rescueEnter rescue mode
systemctl emergencyEnter emergency mode
Unit Files
systemctl cat service.serviceShow unit file contents
systemctl edit service.serviceEdit unit file with override
systemctl edit --full service.serviceEdit complete unit file
systemctl daemon-reloadReload systemd configuration
systemctl show service.serviceShow all unit properties
systemctl mask service.serviceMask a unit (prevent start)
systemctl unmask service.serviceUnmask a unit
Logs & Journal
journalctlShow all journal entries
journalctl -u service.serviceShow logs for specific service
journalctl -fFollow journal in real-time
journalctl -bShow logs from current boot
journalctl -b -1Show logs from previous boot
journalctl --since "1 hour ago"Show logs from last hour
journalctl --since todayShow logs from today
journalctl -p errShow only error messages
journalctl -n 50Show last 50 log entries
journalctl --disk-usageShow journal disk usage
Targets
systemctl get-defaultShow default target
systemctl set-default multi-user.targetSet default target to multi-user
systemctl isolate graphical.targetSwitch to graphical target
systemctl list-units --type=targetList all targets
Timers
systemctl list-timers --allList all timers
systemctl start timer.timerStart a timer
systemctl enable timer.timerEnable timer at boot
systemctl status timer.timerShow timer status
Advanced
systemctl daemon-reexecReexecute systemd manager
systemctl reset-failedReset failed state for all units
systemctl reset-failed service.serviceReset failed state for service
systemctl set-property service Mem=1GSet runtime property
systemd-analyzeShow boot time analysis
systemd-analyze blameShow service startup times
systemd-analyze critical-chainShow critical chain of services
systemd-analyze verify service.serviceVerify unit file syntax