Create a magic file school.mgc that can be used with the command file to detect School…
Jump to turn (17)
- 1Create a magic file school.mgc that can be used with the command file to detect
- 2show me how i can show mime-type that i want using magic file
- 3isnt that description not mime type i want it to show mime type X if file start
- 4tell me option that i have to write magic file
- 5what about mime
- 6how to make a magic file that detect other file type by see if the first string
- 7how to compile file to become magic file
- 8can we compile with mime-type and -m in same file
- 9when we use this command : file -C -m asmaa asmaa.mgc what C mean and what -m me
- 10explain more simple it hard to understand the -m part
- 11can i do this : file -C asmaa asmaa.mgc
- 12what is -mime-type
- 13how to change this rule for some file using magic file
- 14not file -m but i want to do file file --mime-type
- 15what is !mime inside magic file
- 16what is this !:mime ?
- 17explain this : A MIME type is given on a separate line, which must be the next n
- User
Create a magic file school.mgc that can be used with the command file to detect School data files. School data files always contain the string SCHOOL at offset 0.
and if i did this command : file --mime-type -m school.mgc * will show this : thisisaschoolfile: School and if i did this command: file -m school.mgc * it will show this : thisisaschoolfile: School data
--
when i do : file --mime-type -m school.mgc thisisaschoolfile it show : thisisaschoolfile: text/plain it should show : School
- Assistant