
|
85516 packages online
|
|
 |
|
|
|
|
No screenshot available
|
| Short: | Determine file's MIME type from contents |
| Author: | Ian Darwin, Christos Zoulas et al |
| Uploader: | Cameron Armstrong (Nightfox) <cameronscottarmstrong gmail com> |
| Type: | util/misc |
| Version: | 5.48 |
| Architecture: | m68k-amigaos >= 2.0; ppc-amigaos; ppc-morphos |
| Date: | 2026-08-24 |
| Download: | util/misc/file_ca.lha - View contents | | Readme: | util/misc/file_ca.readme |
| Downloads: | 20 |
|
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 the database next to itself, so keeping them
together is all that is required.
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.
|
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 23 19:05 file/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/AmigaOS3/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/AmigaOS3/C/
-rwxr-xr-x 502/20 125151 237192 52.8% -lh5- 9eea Aug 23 19:05 file/AmigaOS3/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 23 19:05 file/AmigaOS3/C/magic.mgc
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/AmigaOS4/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/AmigaOS4/C/
-rwxr-xr-x 502/20 142925 301737 47.4% -lh5- d1d3 Aug 23 19:05 file/AmigaOS4/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 23 19:05 file/AmigaOS4/C/magic.mgc
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/MorphOS/
drwxr-xr-x 502/20 0 0 ****** -lhd- 0000 Aug 23 19:05 file/MorphOS/C/
-rwxr-xr-x 502/20 208562 455344 45.8% -lh5- 5ca6 Aug 23 19:05 file/MorphOS/C/file
-rw-r--r-- 502/20 479454 10806480 4.4% -lh5- 2466 Aug 23 19:05 file/MorphOS/C/magic.mgc
-rw-r--r-- 502/20 979 1841 53.2% -lh5- 2aa5 Aug 23 19:04 file.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 14 files 1915979 33415554 5.7% Aug 24 10:51
|
|
|
 |
| Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |