Classify the named files
according to the type of data they contain. file
checks the magic file (usually /etc/magic
) to identify many common file types.
Check the format of the magic file (files
argument is invalid with
on the filenames in list
Do not follow symbolic links.
as the magic file instead of /etc/magic
Many file types are understood. Output lists each filename, followed by a brief classification such as:
c program text
iAPX 386 executable
[nt]roff, tbl, or eqn input text
symbolic link to ../usr/etc/arp
List all files that are deemed to be nroff
file * | grep roff