OS4 DepotLogo by Browallia 
(anonymous IP: 216.73.216.51,2503) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (351)
   o Datatype (51)
   o Demo (207)
   o Development (628)
   o Document (24)
   o Driver (102)
   o Emulation (155)
   o Game (1050)
   o Graphics (516)
   o Library (121)
   o Network (241)
   o Office (69)
   o Utility (959)
   o Video (74)

Total files: 4548

Full index file
Recent index file

 Links

  Amigans.net
  Aminet
  IntuitionBase
  Hyperion Entertainment
  A-Eon
  Amiga Future


Support the site


 Readme for:  Utility » Misc » file_ca.lha

File_ca

Description: Determine file MIME type from its contents
Download: file_ca.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 2Mb
Version: 5.48-1
Date: 30 Aug 2026
Author: Cameron Armstrong (Nightfox)
Submitter: Samir Hawamdeh
Homepage: https://github.com/sacredbanana/AmigaSDK-gcc
Category: utility/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 14038
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads:  (Current version)
 (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
Amiga port of the "file" UNIX app. It identifies the type of a file by
inspecting its contents rather than trusting its name or filenote. It
recognises several thousand formats, from Amiga hunk executables and IFF
containers through to modern archive, image, audio and document types.

This is a port of the standard Unix file(1), version 5.48. Native binaries
are included for AmigaOS 3 (68k), AmigaOS 4 (PPC) and MorphOS (PPC).


Installation

    Copy the contents of the C/ directory for your system to C:, e.g. on
    AmigaOS 3:

        copy file/AmigaOS3/C/#? C:

    Both the "file" command and its magic database "magic.mgc" belong in C:.
    The command looks for "magic.mgc" in its own drawer (PROGDIR:) and then
    in C:, so keeping the two together is all that is required.

    To keep the database somewhere else, either set the MAGIC environment
    variable or pass -m, e.g.

        1> setenv MAGIC Work:magic.mgc
        1> file -m Work:magic.mgc picture.jpg


Usage

    file <name>            identify one or more files
    file -i <name>         print a MIME type instead of a description
    file -b <name>         omit the filename from the output
    file --help            full option list

    Examples:

        1> file C:file
        C:file: AmigaOS loadseg()ble executable/binary

        1> file -i Work:Pictures/photo.jpg
        Work:Pictures/photo.jpg: image/jpeg


Notes

    Compressed-file inspection using external decompressors is not available:
    AmigaOS provides no sigaction(), and clib2 no pipe(), so that code path is
    compiled out. Reading compressed files directly is unaffected.

    The developer SDK (static libmagic.a libraries and magic.h) is distributed
    separately as magic.lha.


Licence

    BSD-style; see COPYING in the source distribution.


Changelog

    -----------------
    5.48-1 (29-08-26)
    -----------------

    - Fix issues locating the magic file in C:

Copyright © 2004-2026 by Björn Hagström All Rights Reserved