mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-02 21:34:01 +02:00
17 lines
403 B
Markdown
17 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}}`
|