🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unnix
Article #2

Re: files and /etc/magic

#2
From: Peter Beckmann
Date: Wed, 28 Oct 1992 13:42
79 lines
3479 bytes
Here is some stuff i picked off the net.

0	string		<!OPS		Interleaf ASCII document
#
0	string		<MakerFile	Frame Maker document
0	string		<MIFFile	Frame Maker MIF file
0	string		<MML		Frame Maker MML file
#
# from pbmplus27sep91/magic
# PBMPLUS auxiliary magic numbers file
#
# These are meant to be used with the "file" program to help determine
# the type of a file.  You can add these entries to the system's /etc/magic
# file, or if your version of "file" supports the -m flag you can use
# them that way.
#
# All of these entries use the "string" format so that they will work on
# both big-endian and little-endian machines.
0	string		begin			uuencoded file
0	string		xbtoa			btoa'd file

0	string		P1			PBM file
0	string		P2			PGM file
0	string		P3			PPM file
0	string		P4			PBM "rawbits" file
0	string		P5			PGM "rawbits" file
0	string		P6			PPM "rawbits" file

0	string		\361\0\100\273		CMU window manager bitmap
0	string		yz			MGR bitmap
0	string		\115\115		TIFF file, big-endian
0	string		\111\111		TIFF file, little-endian
#0	string		GIF87a			GIF file
#0	string		GIF89a			GIF file

8	string		ILBM			IFF ILBM file
0	string		This\040is\040a\040BitMap\040file	Lisp Machine bit-array-file
0	string		!!			Bennet Yee's "face" format

#Article 400 of alt.sources:
#From: cameron@spectrum.cs.unsw.oz.au or cameron@cs.unsw.oz.au (Cameron Simpson)
#Subject: some useful additions to your magic file ...
#Date: 21 Mar 92 05:55:23 GMT
#Organization: CS&E Computing Facility, Uni Of NSW, Oz
#
#This is simply a list of a few entries which seem missing from most systems'
#magic files. The first 10 or so entries recognise and classify executable
#scripts, which otherwise tend to be called C source etc. The last few entries
#recognise a couple of common image formats, always useful when trolling for
#users who are wasting disc space when things are tight.
0	string		#!		exec()able script 
>2	string		/bin/sh		- Bourne shell
>2	string		/usr/bin/sh		- Bourne shell
>2	string		/bin/ksh	- Korn shell
>2	string		/usr/local/bin/ash	- NeilBrown's ash
>2	string		/usr/local/bin/ae	- NeilBrown's ae
>2	string		/home/harry/bin/perl	- Perl
>2	string		/usr/local/bin/perl	- Perl
>2	string		/usr/bin/perl	- Perl
>2	string		/bin/awk	- AWK
>2	string		/bin/nawk	- new AWK
>2	string		/usr/bin/nawk	- new AWK
>2	string		/usr/local/bin/nawk	- new AWK
>2	string		/bin/gawk	- GNU AWK
>2	string		/usr/local/bin/gawk	- GNU AWK
>2	string		/bin/csh	- C shell
>2	string		/usr/bin/csh	- C shell
>2	string		/usr/bin/tcsh	- tcsh shell
>2	string		/bin/tcsh	- tcsh shell
0	string		GIF		GIF image archive 
>3	string		87a		- version %3s
>3	string		87A		- version %3s
>3	string		89a		- version %3s
>3	string		89A		- version %3s
0	long		0xffd8ffe0	JPEG image, big endian
0	long		0xe0ffd8ff	JPEG image, little endian
0	string		hsi1		HSI1 image (wrapper for JPEG?)
# for sc files
38	string		Spreadsheet	sc file
Technical Details
Message-ID: <1992Oct28.134207.2138@dxcern.cern.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!sunra10.cern.ch!pb
References: <1992Oct27.154107.1768@linus.mitre.org> <1992Oct28.123526.16863@uk03.bull.co.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unnix,comp.unix.admin,comp.unix.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!sunra10.cern.ch!pb
From: pb@sunra10.cern.ch (Peter Beckmann)
Subject: Re: files and /etc/magic
Message-ID: <1992Oct28.134207.2138@dxcern.cern.ch>
Sender: news@dxcern.cern.ch (USENET News System)
Reply-To: peterb@dxcern.cern.ch
Organization: CERN European Lab for Particle Physics
References: <1992Oct27.154107.1768@linus.mitre.org> <1992Oct28.123526.16863@uk03.bull.co.uk>
Date: Wed, 28 Oct 1992 13:42:07 GMT
Lines: 79