mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
477 B
Plaintext
22 lines
477 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# systemctl enable
|
|
|
|
> Enable systemd services.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/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`
|