mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 13:48:12 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/systemctl-edit
Normal file
21
tldr/linux/systemctl-edit
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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/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}}`
|
||||
Reference in New Issue
Block a user