.device Systemd unit file
Texto e código-fonte
| Tipo MIME | text/x-systemd-unit |
|---|---|
| Descrição | Systemd unit file |
| Categoria | Texto e código-fonte |
| Assinatura (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].) |
| Baseado em | text/plain |
| Outras extensões | .automount, .mount, .path, .scope, .service, .slice, .socket, .swap, .target, .timer |
Perguntas frequentes
O que é um arquivo .device?
Um arquivo .device é um formato do tipo “Systemd unit file” (tipo MIME text/x-systemd-unit).
Como abro um arquivo .device?
Com qualquer editor de texto – Notepad++, Visual Studio Code, ou gedit e vim no Linux. O arquivo contém texto legível, possivelmente código-fonte ou configuração.
Como reconhecer um arquivo .device verdadeiro?
Pelos bytes do início do arquivo, a assinatura (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].) e 0A 5B 4D 6F 75 6E 74 5D 0A (.[Mount].). No Linux e no macOS, file --mime-type example.device verifica o tipo real independentemente da extensão.
Em qual formato .device se baseia?
Tecnicamente, um arquivo .device é um subtipo de “Plain text document” (text/plain); por isso, programas para esse formato base muitas vezes também conseguem lê-lo.
Qual tipo MIME corresponde a .device?
O tipo MIME é text/x-systemd-unit. No servidor web Apache: AddType text/x-systemd-unit .device; no nginx: types { text/x-systemd-unit device; }.