mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
594 B
Plaintext
27 lines
594 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# systemctl edit
|
|
|
|
> Edit systemd unit files.
|
|
> See also: `systemctl revert`.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#edit%20UNIT%E2%80%A6>.
|
|
|
|
- Overlay a unit file non-destructively:
|
|
|
|
`sudo systemctl edit {{unit_file}}`
|
|
|
|
- Edit a unit file:
|
|
|
|
`sudo systemctl edit {{unit_file}} {{[-l|--full]}}`
|
|
|
|
- Create a new unit file:
|
|
|
|
`sudo systemctl edit {{unit_file}} {{[-lf|--full --force]}}`
|
|
|
|
- Overlay a user unit file:
|
|
|
|
`systemctl edit {{unit_file}} --user`
|