1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-31 23:13:17 +02:00
tldr/pages/linux/systemctl-edit.md
Managor 4d7ed49458
systemctl-edit: add page (#17874)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-08-28 09:17:33 +03:00

403 B

systemctl edit

Edit systemd unit files. More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#edit%20UNIT%E2%80%A6.

  • Replace a unit file non-destructively:

sudo systemctl edit {{unit_file}}

  • Edit an unit file:

sudo systemctl edit {{[-l|--full]}} {{unit_file}}

  • Create a new unit file:

sudo systemctl edit {{[-lf|--full --force]}} {{unit_file}}