title: How to create a custom magic file database
body: <p>The unix <code>file</code> command uses a "magic" file database to determine which type of data a file contains, independently of the file's name or extension.</p>
  
  <p>I need to craft my custom magic database for testing purposes, but I fail to find how to create one.</p>