Enable a service at boot and start it
CautionConfigures the service to start automatically at boot and starts it right away.
sudo systemctl enable --now serviceEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (linux/systemctl.md), licensed under CC BY 4.0.