3 ms·
From what I remember, it's actually does quite complicated things internally. It does some heuristics on the file content based on some rule to determine the fi
by realusername 12y ago
From what I remember, it's actually does quite complicated things internally. It does some heuristics on the file content based on some rule to determine the file format. You can also add new file formats this way, there is a 'magic' file you can add somewhere in /usr/share for that (I don't remember exactly where). And there is literally thousands of file types to test. Anyway, if you have ever coded in C you know what might happen with complex-byte manipulation...