The unix file
command uses a "magic" file database to determine which type of data a file contains, independently of the file's name or extension.
I need to craft my custom magic database for testing purposes, but I fail to find how to create one.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…