Samuelcodetree3.hashnode.dev·Aug 6, 2023Magic filesNormally, to determine the file type, we use the file command. The way it works is that it uses a file /etc/magic to determine the type of file. Now if you have a custom file type, and you want to determine if a file is of that type, a magic file can...Magic