commands.sh

systemctl edit

linux

Edit systemd unit files. See also: `systemctl revert`.

More info →

Options (2)

-l, --fullboolean

Edit a unit file

Example: sudo systemctl edit {{unit_file}} {{[-l|--full]}}
boolean

Create a new unit file

Example: sudo systemctl edit {{unit_file}} {{[-lf|--full --force]}}

Examples (4)

Overlay a unit file non-destructively

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
made by @shridhargupta | data from tldr-pages