Files

Persistant store of data.

Structure

Most commonly

Sometimes (not so much in recent OSs):

Most modern OSs do not impose an interpretation on the content of files. Files are just a sequence of bytes. But! Directories (and soft links) are often implemented as (special) files, which have a structure understood by the filesystem, and which is hidden from user applications. Also! The structure of executable files is to some extent imposed by the OS...

Operations

Files typically support following operations:

  1. CREATE
  2. DELETE
  3. OPEN
  4. CLOSE
  5. READ
  6. WRITE
  7. SEEK (move to an arbitrary position in the file)

Often other operations are supported, usually combinations of above operations. For example, may be able to open a file in 'append' mode, to write data to the end of the file. This would be the same as OPENing the file normally, and SEEKing to the end.

Representation

This information may be stored directly in a directory entry, or may be encapsulated in an inode.


last updated 3 April 1998