Files
cheatsheet-tldr/tldr/linux/systemctl-edit
2025-09-20 00:18:04 +00:00

26 lines
556 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl edit
> Edit systemd unit files.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#edit%20UNIT%E2%80%A6>.
- Overlay 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}}`
- Overlay a user unit file:
`systemctl edit --user {{unit_file}}`