Magic

FILE(1) - General Commands Manual

Magic, File

FILE(1) - General Commands Manual # FILE(1) - General Commands Manual NAME # file - determine file type SYNOPSIS # file [-bchiLsW] file … DESCRIPTION # The file utility tests each argument and attempts to determine its type. Three sets of tests are performed: Filesystem tests, for example if a file is empty, or a special file such as a socket or named pipe (FIFO). “Magic” tests for data in particular fixed formats. ...

MAGIC(5) - File Formats Manual

File, Magic

MAGIC(5) - File Formats Manual # MAGIC(5) - File Formats Manual 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. file(1) identifies the type of a file using, among other tests, a test for whether the file contains certain “magic patterns”. The file /etc/magic specifies what magic numbers are to be tested for, what message to print if a particular magic number is found, and additional information to extract from the file. ...