Next: Viewing a file, one
Up: Files and the File
Previous: Appending to a file
  Contents
Unlike VMS, the concept of default file types designated by some
particular ending, e.g. ``.exe'', is rare in UNIX. In VMS, you will
often find that the operating system will tack these on if you forget
to specify them, basing its choice on the file type and what the file
is being used for. For example, when you type run program, VMS
will look for a file called ``program.exe'', and run that. If it can't
find one, it will give you an error message. In UNIX, only
occasionally does the proper suffix for a filename have to be given.
For example, all files containing Fortran programs should have a
``.f'' ending on their names; this is because that's where the
compiler expects to find Fortran code. The default name for
executable output from a compiler is ``a.out'', but this can be
overridden by specifying a certain option when invoking the compiler.
When you ``run'' a program under UNIX, you simply type its name (e.g.,
a.out or program). There is no run command, and no
default extension which must be part of the filename. The maximum
filename length which most UNIX utilities can handle is about 100
characters, so you are unlikely to run into it. Any character is
allowed to be part of a filename, including blanks; however if you use
some unusual control character, a blank, or one that has special
meaning to your shell (see the section on Shells below for further
explanation), you will have to put a backslash (
)
in front
of it to prevent the shell from trying to translate it.
Next: Viewing a file, one
Up: Files and the File
Previous: Appending to a file
  Contents
h.stilmack@jach.hawaii.edu