delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/21/18:42:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020721153347.02bae6f8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sun, 21 Jul 2002 15:44:02 -0700
To: "Eric Butler" <eric AT extremeboredom DOT net>, <cygwin AT cygwin DOT com>
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: an "open" command which resolves file associations
In-Reply-To: <003201c23105$33bc4850$0501a8c0@mrcomputer>
References: <20020721220540 DOT 30947 DOT qmail AT web21008 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

Eric,

There is a stock Unix tool, "file," that identifies file types based on 
content. It is driven by patterns specified in the file /usr/share/magic 
(which gets compiled into a binary form that the "file" command uses).

You can add to the "magic" descriptions if you have file formats not 
covered (there are over 1000 types covered by the magic file delivered with 
Cygwin).

Consult file(1) and magic(4) for details.

Randall Schulz
Mountain View, CA USA


At 15:23 2002-07-21, Eric Butler wrote:
>Does anyone know of any tools that figures out what type of file something
>is without relying on it having an extention like konqeror ?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019