A.25. File

A.25.1. Contents

The File package contains the file program.

A.25.2. Description

File tests each specified file 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.