OS Manuals

/usr/bin/systemd-escape

The systemd System and Service Manager

From systemd 262.2-r1 (os), captured 2026-11-05 by running systemd-escape --help (exit 0). permalink

> systemd-escape [OPTION…] STRING…
> systemd-escape [OPTION…] --stdin

Escape strings for usage in systemd unit names.

Options:
  -h --help              Show this help
     --version           Show package version
     --suffix=SUFFIX     Unit suffix to append to escaped strings
     --template=TEMPLATE Insert strings as instance into template
     --stdin             Read strings from standard input
     --instance          With --unescape, show just the instance part
  -u --unescape          Unescape strings
  -m --mangle            Mangle strings
  -p --path              When escaping/unescaping assume the string is a path

See the systemd-escape(1) man page for details.
Options (8)
OptionDescriptionSource
-h --helpShow this helphelp
--versionShow package versionhelp
--suffix SUFFIXUnit suffix to append to escaped stringshelp
--stdinRead strings from standard inputhelp
--instanceWith --unescape, show just the instance parthelp
-u --unescapeUnescape stringshelp
-m --mangleMangle stringshelp
-p --pathWhen escaping/unescaping assume the string is a pathhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.