---
title: "Discussion on \"Magic files\" | Hashnode"
description: "Discussion on \"Magic files\". Normally, 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..."
url: "https://hashnode.com/posts/magic-files/64cfbd84a011b9a76782feef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Magic files](https://codetree3.hashnode.dev/magic-files?utm_source=hashnode&utm_medium=feed)

Normally, 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...

Aug 6, 2023 · 3 min read · codetree3.hashnode.dev  
Read the article

-   [#magic](https://hashnode.com/tag/magic)
-   [#magic-file](https://hashnode.com/tag/magic-file)
-   [#magic-links](https://hashnode.com/tag/magic-links)
-   [#mgc](https://hashnode.com/tag/mgc)

## Written by

[Samuel](https://hashnode.com/@codestree)

@codestree · Nairobi, Kenya

  
[View profile](https://hashnode.com/@codestree)

I write; commands for computers and explanations for people

I am an upcoming software engineer from kenya. I am learning, C, python, Shell scripting, js and Ruby. I also do some PLC programming and work with embedded systems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
