File man page on HP-UX

Printed from

file(1)								       file(1)

       file - determine file type

       mfile] ffile] file ...

   UNIX 2003 (onwards) Synopsis
       mfile] Mfile] ffile] file ...

       performs	 a  series of tests on each file in an attempt to classify it.
       If file appears to be an ASCII file, examines the first 512  bytes  and
       tries to guess its language.  If file is an executable file, prints the
       version stamp, provided it is greater than 0 (see  the  description  of
       the option in ld(1)).

       uses  the  file	to  identify files that have some sort of that is, any
       file containing a numeric or string constant that indicates  its	 type.
       Commentary at the beginning of explains the format.

       recognizes the following command-line options:

	      Use alternate magic file

	      (UNIX 2003 onwards Only)
			 Use alternate magic file Mfile.  Do not apply default
			 context-sensitive tests.

	      Check the magic file for format errors.
			 This validation is not normally carried out for  rea‐
			 sons  of  efficiency.	No file classification is done
			 when this option is specified.

	      (UNIX 2003 onwards Only)
			 Apply position-sensitive tests from the default magic
			 file,	and  default  context-sensitive	 tests	to the

	      Obtain the list of files to be examined from file
			 ffile.	 classifies each file whose  name  appears  in

	      Do not follow symbolic links.
			 From UNIX 2003 (onwards) environment, if is not spec‐
			 ified and the is a symbolic link referring to a  non-
			 existent  file,  it is identified as a symbolic link,
			 as if has been specified.

	      Do not attempt to classify a regular file further.

	      If the option is specified with the option, option, or both, the
	      concatenation of the position-sensitive tests specified by these
	      options is applied in the order specified by the	appearance  of
	      these options.

       For information about the UNIX standard environment, see standards(5).

   Environment Variables
       determines the language in which messages are displayed.

       If  is  not specified in the environment or is set to the empty string,
       the value of is used as a default for each unspecified or  empty	 vari‐
       able.   If is not specified or is set to the empty string, a default of
       "C" (see lang(5)) is used instead of

       If any  internationalization  variable  contains	 an  invalid  setting,
       behaves	as  if all internationalization variables are set to "C".  See

   International Code Set Support
       Single- and multi-byte character code sets are supported.  However, all
       non-ASCII text files are identified as "data".

       The command for a release interprets the core files for that particular
       release correctly.  Using the command on a core	file  generated	 on  a
       different release will report incorrect results.

       ld(1), standards(5).


List of man pages available for HP-UX

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