.reg Estratto Windows Registry
Testo e codice sorgente
| Tipo MIME | text/x-ms-regedit |
|---|---|
| Descrizione | Estratto Windows Registry |
| Categoria | Testo e codice sorgente |
| Firma (magic bytes) | 52 45 47 45 44 49 54 (REGEDIT) |
| Basato su | text/plain |
Domande frequenti
Che cos’è un file .reg?
Un file .reg è un formato di tipo «Estratto Windows Registry» (tipo MIME text/x-ms-regedit).
Come apro un file .reg?
Con qualsiasi editor di testo: Notepad++, Visual Studio Code, oppure gedit e vim su Linux. Il file contiene testo leggibile, eventualmente codice sorgente o configurazione.
Come si riconosce un vero file .reg?
Dai byte all’inizio del file, la firma (magic bytes): 52 45 47 45 44 49 54 (REGEDIT). Su Linux e macOS, file --mime-type example.reg verifica il tipo reale indipendentemente dall’estensione.
Su quale formato si basa .reg?
Tecnicamente un file .reg è un sottotipo di «Documento in testo semplice» (text/plain), quindi i programmi per quel formato di base spesso riescono a leggerlo.
Quale tipo MIME corrisponde a .reg?
Il tipo MIME è text/x-ms-regedit. Nel server web Apache: AddType text/x-ms-regedit .reg; in nginx: types { text/x-ms-regedit reg; }.