
|
85530 packages online
|
|
 |
|
|
|
|
No screenshot available
|
| Short: | Determine file MIME type from its contents |
| Author: | Ian Darwin, Christos Zoulas et al |
| Uploader: | Cameron Armstrong (Nightfox) <cameronscottarmstrong gmail com> |
| Type: | util/misc |
| Version: | 5.48-1 |
| Architecture: | m68k-amigaos >= 2.0; ppc-amigaos; ppc-morphos |
| Date: | 2026-08-29 |
| Replaces: | util/misc/file_ca.lha |
| Download: | util/misc/file_ca.lha - View contents | | Readme: | util/misc/file_ca.readme |
| Downloads: | 202 |
|
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:
|
Contents of util/misc/file_ca.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:06 file/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:05 file/AmigaOS3/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:05 file/AmigaOS3/C/
-rwxr-xr-x 502/20 125272 237420 52.8% -lh5- a033 Aug 29 06:05 file/AmigaOS3/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 29 06:05 file/AmigaOS3/C/magic.mgc
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:05 file/AmigaOS4/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:05 file/AmigaOS4/C/
-rwxr-xr-x 502/20 142958 301749 47.4% -lh5- fb73 Aug 29 06:05 file/AmigaOS4/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 29 06:05 file/AmigaOS4/C/magic.mgc
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:06 file/MorphOS/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 29 06:06 file/MorphOS/C/
-rwxr-xr-x 502/20 208676 455556 45.8% -lh5- a1e7 Aug 29 06:06 file/MorphOS/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 29 06:06 file/MorphOS/C/magic.mgc
-rw-r--r-- 502/20 1142 2224 51.3% -lh5- 98c4 Aug 29 06:04 file.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 14 files 1916410 33416389 5.7% Aug 29 23:32
|
|
|
 |
| Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |