| File (unix) |
Article Index for File |
Website Links For File |
Information AboutFile (unix) |
|
file is a program originated in Unix that runs under the Shell ( Command-line ) to determine the file type heuristically instead of other simpler ways to classify it, like with file extensions, MIME s, etc. It also extracts the Magic Number from executable files. HISTORY The original version originated from the Unix Research Version 4 as far as 1973 . Then in System V was a major update with important changes, notably moving knowledge of file types into an external text file (making the program more flexible but slower). A free, Open-source reimplementation was written by Ian Darwin from scratch. Geoff Collyer added more features and more accuracy in 1989 . Other people have added functionality, like Guy Harris, Chris Lowth, Eric Fischer, and many others. Darwin's version is currently mantained by Christos Zoulas. It is licensed under BSDLicense and is included in all known BSD and Linux distributions including Mac OS X . LINUX OUTPUT EXAMPLES file.c: C program text file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped /dev/wd0a: block special (0/0) /dev/hda: block special (3/0) /dev/wd0b: data /dev/wd0d: x86 boot sector /dev/hda: x86 boot sector /dev/hda1: Linux/i386 ext2 filesystem /dev/hda2: x86 boot sector /dev/hda3: x86 boot sector, extended partition table /dev/hda4: Linux/i386 ext2 filesystem /dev/hda5: Linux/i386 swap file /dev/hda6: Linux/i386 swap file /dev/hda7: Linux/i386 swap file /dev/hda8: Linux/i386 swap file /dev/hda9: empty file.c: text/x-c file: application/x-executable, dynamically linked (uses shared libs),not stripped /dev/hda: application/x-not-regular-file /dev/wd0a: application/x-not-regular-file EXTERNAL LINKS |
|
|