.slice Systemd unit file

Text & source code

MIME typetext/x-systemd-unit
DescriptionSystemd unit file
CategoryText & source code
Signature (magic bytes)0A 5B 41 75 74 6F 6D 6F 75 6E 74 5D 0A (.[Automount].)
0A 5B 49 6E 73 74 61 6C 6C 5D 0A (.[Install].)
0A 5B 4D 6F 75 6E 74 5D 0A (.[Mount].)
Based ontext/plain
Other extensions.automount, .device, .mount, .path, .scope, .service, .socket, .swap, .target, .timer

Frequently asked questions

What is a .slice file?

A .slice file is a “Systemd unit file” (MIME type text/x-systemd-unit).

How do I open a .slice file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .slice file?

By the bytes at the start of the file, the signature (magic bytes): 0A 5B 41 75 74 6F 6D 6F 75 6E 74 5D 0A (.[Automount].), 0A 5B 49 6E 73 74 61 6C 6C 5D 0A (.[Install].) and 0A 5B 4D 6F 75 6E 74 5D 0A (.[Mount].). On Linux and macOS, file --mime-type example.slice checks the real type regardless of the extension.

Which format is .slice based on?

Technically a .slice file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .slice?

The MIME type is text/x-systemd-unit. In the Apache web server: AddType text/x-systemd-unit .slice; in nginx: types { text/x-systemd-unit slice; }.

Nearby entries