1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-02 18:33:49 +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

16 lines
403 B
Markdown

# 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}}`