Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ file(1) — SunOS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

FILE(1)  —  USER COMMANDS

NAME

file − determine file type

SYNOPSIS

file file ...

DESCRIPTION

File performs a series of tests on each file in an attempt to determine what its contents are.  If an argument appears to be ASCII, file examines the first 512 bytes and tries to guess its language. 

EXAMPLE

The example illustrates the use of file on all the files in a specific user’s directory:

% pwd
/usr/henry/misc
% ls
bensusanfortran.mssmessagesromerotoolkit.tr
command.listjokespascal.msssquashuseful.news
countslettersplay.msstech.papersv7.stuff
deutermemosroadmap.msstitleswindow
% file  ∗
bensusan:roff, nroff, or eqn input text
command.list:roff, nroff, or eqn input text
counts:ascii text
deuter:roff, nroff, or eqn input text
fortran.mss:roff, nroff, or eqn input text
jokes:directory
letters:directory
memos:directory
messages:directory
pascal.mss:roff, nroff, or eqn input text
play.mss:roff, nroff, or eqn input text
roadmap.mss:roff, nroff, or eqn input text
romero:roff, nroff, or eqn input text
squash:directory
tech.papers:directory
titles:ascii text
toolkit.tr:roff, nroff, or eqn input text
useful.news:directory
v7.stuff:archive
window:directory
%

BUGS

It often makes mistakes.  In particular it often suggests that command files are C programs. 

Does not recognize Pascal or LISP. 

Sun Release 1.1  —  Last change: 2 June 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026