Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
file(1) OSS Shell and Utilities Reference Manual
flagged as unknown format.
For text files, the file utility examines the file data and tries to determine what kind of text it con-
tains. The string empty is printed for any file type that has no data.
Standard Output
The type value for each file operand is printed to standard output in the following format:
"%s: %s\n", file, type[,type]...
where type contains one of the following strings:
____________________________________________________________
File Type Strings
____________________________________________________________
OSS and Guardian
files that are not
disk files
block special, character special,
directory, fifo, strings
____________________________________________________________
Empty regular
OSS files
empty
____________________________________________________________
Regular HP object
files
Archive member, axcel region, binder
region, ELF object format, executable,
Guardian Archive, Guardian COFF
object format, Guardian target,
library, NonStop OSS target, TNS/E PIC
object file, TNS/R object file, TNS/R
PIC object file, OSS archive, process
snapshot, shared runtime library, sym-
bol region, TNS object format, uses
shared runtime library
____________________________________________________________
Regular text files ASCII text, assembler program text,
commands text, C program text, data or
International Language text, English
text, FORTRAN
program text, English
text, EQN, input text, [nr/tr]off, SCCS,
TBL
____________________________________________________________
Files in the Guar-
dian file system
entry-sequenced, file codes, key-
sequenced, relative, SQL object,
unstructured
____________________________________________________________
Files with magic
values, cpio or tar
format files
archive, CPIO archive, FrameMaker docu-
ment, FrameMaker MIF file, FrameMaker
MML file, PostScript document, Sun
Binary, TAR archive
____________________________________________________________
All other files unknown format
____________________________________________________________
EXAMPLES
1. To show the file type of a Guardian text file, enter:
file /G/vol/subvol/file
This command displays the pathname of the file followed by the file type.
3−138 Hewlett-Packard Company 527188-021