rom a stat(2)
     system call.  The program checks to see if the file is empty, or if it's
     some sort of special file.  Any known file types appropriate to the sys‐
     tem you are running on (sockets, symbolic links, or named pipes (FIFOs)
     on those systems that implement them) are intuited if they are defined in
     the system header file &lt;sys/stat.h&gt;.

     The magic tests are used to check for files with data in particular fixed
     formats.  The canonical example of this is a binary