From a793fa67779095ba943651bdc72bb8ac9cd33017 Mon Sep 17 00:00:00 2001 From: Daniel <33197631+dadav@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:20:12 +0200 Subject: [PATCH] systemd-escape: add page (#10937) --- pages/linux/systemd-escape.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/systemd-escape.md diff --git a/pages/linux/systemd-escape.md b/pages/linux/systemd-escape.md new file mode 100644 index 000000000..cc6e7630b --- /dev/null +++ b/pages/linux/systemd-escape.md @@ -0,0 +1,24 @@ +# systemd-escape + +> Escape strings for usage in systemd unit names. +> More information: . + +- Escape the given text: + +`systemd-escape {{text}}` + +- Reverse the escaping process: + +`systemd-escape --unescape {{text}}` + +- Treat the given text as a path: + +`systemd-escape --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}}`