Fichier magique !?

Bonjour,

Je viens de recevoir une proposition de mise à jour de Debian.
Parmi les fichiers proposés, il y en a 2 qui ont trait à ce qu’ils appellent “Fichier Magique” ("Détermination du type de fichier avec “Fichier Magique” pour être plus complet.

À quoi peut bien servir ce “Fichier Magique” :doh:

Merci.

Tu parles sûrement des paquets file et libmagic*. Il ne s’agit pas plutôt des “nombres magiques” (magic numbers) ?

$ man magic

[code]
NAME
magic — file command’s magic pattern file

DESCRIPTION
This manual page documents the format of the magic file as used by the file(1) command, version 5.17. The file(1) command identifies the type of a file
using, among other tests, a test for whether the file contains certain “magic patterns”. The file /usr/share/misc/magic specifies what patterns are to be
tested for, what message or MIME type to print if a particular pattern is found, and additional information to extract from the file.[/code]

Sert à identifier les types des fichiers.

catb.org/jargon/html/M/magic-number.html

Oups ! En effet, c’est bien cela.

Merci à tous pour ces explications.