commands.sh

systemd-escape

linux

Escape strings for usage in systemd unit names.

More info →

Options (2)

-u, --unescapeboolean

Reverse the escaping process

Example: systemd-escape {{[-u|--unescape]}} {{text}}
-p, --pathboolean

Treat the given text as a path

Example: systemd-escape {{[-p|--path]}} {{text}}

Examples (5)

Escape the given text

Reverse the escaping process

systemd-escape [-u|--unescape] text

Treat the given text as a path

systemd-escape [-p|--path] text

Append the given suffix to the escaped text

systemd-escape --suffix suffix text

Use a template and inject the escaped text

systemd-escape --template template text
made by @shridhargupta | data from tldr-pages