On Sun, 06 Feb 2011 20:27:16 +0000, Lisi wrote: > I need to find out: > a)What the magic number should be for certain types of file
"man magic" says you have to look under "/usr/share/file/magic" > and b)Whether a specific file of that type has the correct magic number. "file" command, as already pointed out, can help. > Here is my one, so far futile, effort - in addition to googling until I > can see magic numbered smoke coming out of my ears. :-( > > lisi@Tux:~$ cat /usr/share/misc/magic.mgc | grep gzip > Binary file (standard input) matches > lisi@Tux:~$ grep gzip /usr/share/file/magic > I realise that this is more specific to UNIX than specific to Debian - > but it applies to all the UNIX family, and Debian is part of that > family. ;-) Additional info: http://www.linfo.org/magic_number.html Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.02.07.19.10...@gmail.com