File for Windows

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. The type printed will usually contain one of the words text (the file contains only printing characters and a few common control characters and is probably safe to read on an ASCII terminal), executable (the file contains the result of compiling a program in a form understandable to some UNIX kernel or another), or data meaning anything else (data is usually `binary' or non-printable). Exceptions are well-known file formats (core files, tar archives) that are known to contain binary data.

Starting with version 4, the file command is not much more than a wrapper around the "magic" library.




If you download the Setup program of the package, any requirements for running applications, such as dynamic link libraries (DLL's) from the dependencies as listed below under Requirements, are already included. If you download the package as Zip files, then you must download and install the dependencies zip file yourself. Developer files (header files and libraries) from other packages are however not included; so if you wish to develop your own applications, you must separately install the required packages.

DescriptionDownloadSizeLast changeMd5sum
• Complete package, except sources Setup  835321  7 May 2009  88b83fc42f2d393b9f86fe4c05be4b16
• Sources Setup  764039  7 May 2009  75ae9df7d6c2220a983ab592e798d360
• Binaries Zip  442585  7 May 2009  1c003c59ee9fb04ca84a5488543a69e0
• Developer files Zip  7142  7 May 2009  35087df71ce92dc8ca00789538f063f0
• Documentation Zip  191162  7 May 2009  7a6e366ad76df2b69492296054b7d5ae
• Sources Zip  1189051  7 May 2009  dbbf8544f74530b6bb31cf8da3cd5b6c
• Dependencies Zip  84675 24 October 2007  ef386032df0e68c8a44048a184695fd7
• Original source

You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.

Installation, Usage and Help

General Installation Instructions

GnuWin32 Help (feature requests, bugs, etc)


Requirements for running applications, excluding external ones such as msvcrt.dll, perl, etc, are included in the Setup program and the dependencies zip file.

file,5.03,gnu,win32,win32s,win64,gnuwin32,i386,i486,i586,i686,ia64,x86-64, gnuwin64,gnuwin,mswindows,ms-windows,windows,95,98,me,nt,2000,2k,xp,2003,vista,2008