Skip to content


Default directories

  • /usr/lib/systemd/system
  • /etc/systemd/system

List units (current snapshot of the system)

systemctl list-units --type=service --all

systemctl list-units --type=target --all

List units at startup

systemctl list-unit-files

Get default "runlevel" (known as target in systemd)

systemctl get-default

See symlink /etc/systemd/system/

Set default target to CLi

systemctl set-default

Set default target to graphical

systemctl set-default

Change target from GUI to CLI

systemctl isolate

Power off/reboot

systemctl isolate
systemctl poweroff
systemctl reboot

Consult journal since last boot

journalctl -b 0

List cgroup hierarchy


Manage service target

systemctl start postfix.service
systemctl stop postfix.service
systemctl status postfix.service
systemctl enable postfix.service
systemctl disable postfix.service