.swap Systemd-Einheitendatei
Text & Quellcode
| MIME-Typ | text/x-systemd-unit |
|---|---|
| Beschreibung | Systemd-Einheitendatei |
| Kategorie | Text & Quellcode |
| Signatur (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].) |
| Basiert auf | text/plain |
| Weitere Endungen | .automount, .device, .mount, .path, .scope, .service, .slice, .socket, .target, .timer |
Häufige Fragen
Was ist eine .swap-Datei?
Eine .swap-Datei ist ein Format vom Typ „Systemd-Einheitendatei“ (MIME-Typ text/x-systemd-unit).
Womit öffne ich eine .swap-Datei?
Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.
Woran erkennt man eine echte .swap-Datei?
Am Dateianfang, der sogenannten Signatur (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].) und 0A 5B 4D 6F 75 6E 74 5D 0A (.[Mount].). Unter Linux und macOS prüft file --mime-type example.swap den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .swap?
Technisch ist eine .swap-Datei ein Untertyp von „Einfaches Textdokument“ (text/plain). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.
Welcher MIME-Typ gehört zu .swap?
Der MIME-Typ ist text/x-systemd-unit. Im Apache-Webserver: AddType text/x-systemd-unit .swap; in nginx: types { text/x-systemd-unit swap; }.