How to create a custom magic file database

后端 未结 3 2077
有刺的猬
有刺的猬 2020-12-14 01:41

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

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 02:21

    You can man magic for a description for how to create your own magic file. Then use file -C -m to compile it, and file -m to use it.

提交回复
热议问题