mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
23 lines
551 B
Plaintext
23 lines
551 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|