systemd-escape 'nginx service'

Category: Administration

systemd-escape 'nginx service'

Escape a string for use in unit names

Converts a human-readable name like 'nginx service' into the escaped form nginx\x20service that systemd unit names require. Spaces and special characters must be escaped because unit names become file names. Use it in the other direction to decode unit names back to readable text.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.