UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
ENCORE5
ENCORE
BOX
COMMAND
GO
file
SYNOPSIS
file [-m mfile] [-f namesfile]
FUNCTION
Determines the type of the file, i.e. ASCII,
executable, object, nroff text, etc. If the
file is an ASCII file, file examines the
first 512 bytes and tries to guess its language.
OPTIONS
-f - Examines the files listed in the namesfile
-m - Sets the access time of the examined file
to the current time
Let us assume that there is a file called
counter, with the following text:
counter
counter(n) /* count 1 bits in n */
unsigned n;
{
int b;
for (b = 0; n != 0; n >>= 1)
if ( n & 01)
b++;
return(b);
}
Command for determining file type, practice, - 1.8.2.0.1
Let us use the file command
to determine the type of the file counter:
Please enter the appropriate command.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use the file command on the file counter
Please type file counter
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal!
file counter
counter: c program text
$PROMPT$