HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl enable — Enable systemd services. See also: `systemctl revert`. More information: <https://www.freedesktop.or

Submitted by: @import:tldr-pages··
0
Viewed 0 times
systemdcommandservicesclisystemctl enableenableseealso
linux

Problem

How to use the systemctl enable command: Enable systemd services. See also: systemctl revert. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#enable%20UNIT%E2%80%A6>.

Solution

systemctl enable — Enable systemd services. See also: systemctl revert. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#enable%20UNIT%E2%80%A6>.

Enable a service to run on boot:
systemctl enable {{unit}}


Enable a service to run on boot and start it now:
systemctl enable {{unit}} --now


Enable a user unit to run on login:
systemctl enable {{unit}} --user

Code Snippets

Enable a service to run on boot

systemctl enable {{unit}}

Enable a service to run on boot and start it now

systemctl enable {{unit}} --now

Enable a user unit to run on login

systemctl enable {{unit}} --user

Context

tldr-pages: linux/systemctl enable

Revisions (0)

No revisions yet.