Ubuntu systemd systemctl Cheatsheet

Infos

  • systemctl list-units --no-pager
  • systemctl list-units --no-pager | grep apt
  • systemctl list-unit-files --no-pager | grep apt
  • systemctl status apt-daily.timer
  • systemctl show apt-daily.timer
  • systemctl is-enabled apt-daily-upgrade.timer

 

Enable a service

  • systemctl enable apt-daily-upgrade.timer

 

Files:

  • ls -la /etc/systemd/system/timers.target.wants