The gfile Utility Program is similar to UNIX file. The gfile Utility prints the file type of each filename argument. It may also display additional information. For example, if a machine supports both Big and Little Endian data ordering, then for an object file, object file library, or executable file, gfile displays the machine type and byte order. For unrecognized object files, gfile prints unknown machine type.
gfile [-help] filename1 [filename2 . . .]
-help Display information about all options.
filename Filename argument(s), separated by white space.
There is an executable file named a.out in the current working directory. This executable was created by the Green Hills Tool Chain for an SH (Super Hitachi) CPU. Running gfile on a.out produces the following:
gfile a.out
a.out: SH big endian
The current host system is a SPARC workstation running the Solaris 2.x operating system, which uses the ELF format for executable files:
gfile /bin/od
/bin/od: SPARC big endian executable ELF