file man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

file(1)								       file(1)

       file - determine file type

       file [ -c ] [ -f ffile] [ -m mfile] filename ...

       The  command performs a series of tests on each filename argument in an
       attempt to classify it.	If an argument appears to be ASCII,  the  com‐
       mand examines the first 1024 bytes and tries to guess its language.

       For character special files, part of this classification is information
       about which devices the system shows as active.	In particular, device-
       specific	 information such as controller type and unit, device type and
       unit, and status (offline, write locked, density, errors) is  returned.
       The general categories currently implemented are disk, tape, and termi‐
       nal devices. The supported terminal devices include Local  Area	Termi‐
       nals (LAT) but not Local Area Network (LAN) pseudo-terminals.

       The  command  uses  the	file  to identify files that have some sort of
       magic number.  A magic number is any numeric or	string	constant  that
       identifies  the file containing the constant.  Commentary at the begin‐
       ning of explains its format.

       -c   Checks the magic file for format errors by printing	 the  internal
	    representation  of	the  magic file.  No file typing is done under

       -f   Interprets the following argument to  be  a	 file  containing  the
	    names of the files to be examined.

       -m   Instructs file to use an alternate magic file.

       It  often  does a poor job of distinguishing C programs, shell scripts,
       English text, and ASCII text.

       It does not recognize many  programming	languages,  including  Modula,
       Pascal, and Lisp.


See Also


List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net