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

systemctl disable — Disable systemd services. See also: `systemctl revert`. More information: <https://www.freedesktop.o

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

Problem

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

Solution

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

Stop a service from running on boot:
systemctl disable {{unit}}


Stop a service from running on boot and stop its current execution:
systemctl disable {{unit}} --now


Stop a user service from running on login:
systemctl disable {{unit}} --user

Code Snippets

Stop a service from running on boot

systemctl disable {{unit}}

Stop a service from running on boot and stop its current execution

systemctl disable {{unit}} --now

Stop a user service from running on login

systemctl disable {{unit}} --user

Context

tldr-pages: linux/systemctl disable

Revisions (0)

No revisions yet.