libmagic

v 5.45 Updated: 1 year, 3 months ago

File - determine file type

File tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be printed. For information on Mach-O binaries, it is suggested that one uses the command `otool -fv`.

http://www.darwinsys.com/file/

To install libmagic, paste this in macOS terminal after installing MacPorts

sudo port install libmagic

Add to my watchlist

Installations 442
Requested Installations 27